Visual Basic (Declaration) | |
---|---|
Public Property UriOperationCredentials As ICredentials |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As RasterCodecs Dim value As ICredentials instance.UriOperationCredentials = value value = instance.UriOperationCredentials |
C# | |
---|---|
public ICredentials UriOperationCredentials {get; set;} |
C++/CLI | |
---|---|
public: property ICredentials^ UriOperationCredentials { ICredentials^ get(); void set ( ICredentials^ value); } |
Property Value
An System.Net.ICredentials that contains the authentication credentials used with URI-based operations. The default is a null reference (Nothing in Visual Basic).For an example, refer to Save(RasterImage image, Uri uri, RasterImageFormat format, int bitsPerPixel, int firstPage, int lastPage).
The UriOperationCredentials is used to authenticate the required access to a remote resource.
To override the default credentials to use when accessing a remote resource, you must change the value of the UriOperationCredentials property prior to calling any of these methods:
- GetInformation(Uri uri, bool totalPages)
- GetInformation(Uri uri, bool totalPages, int pageNumber)
- GetInformation(Uri uri, bool totalPages, int pageNumber, object userState)
- Load(Uri uri)
- Load(Uri uri, int bitsPerPixel, CodecsLoadByteOrder order, int firstPage, int lastPage)
- LoadAsync(Uri uri, object userState)
- LoadAsync(Uri uri, int bitsPerPixel, CodecsLoadByteOrder order, int firstPage, int lastPage, object userState)
- LoadAsync(Uri uri, LeadRect tile, object userState)
- LoadAsync(Uri uri, LeadRect tile, int bitsPerPixel, CodecsLoadByteOrder order, int firstPage, int lastPage, object userState)
- Save(RasterImage image, Uri uri, RasterImageFormat format, int bitsPerPixel)
- Save(RasterImage image, Uri uri, RasterImageFormat format, int bitsPerPixel, int firstPage, int lastPage)
To change the proxy information to use when accessing a remote resource, use the UriOperationProxy property.
Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)