ExternalResourceService.GetBinaryResource Method
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
When overridden in a derived class, gets the specified URI in the project system and returns its contents as a binary blob.
Namespace: Microsoft.Windows.Design.Services
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustOverride Function GetBinaryResource ( _
uri As Uri _
) As BinaryResource
public abstract BinaryResource GetBinaryResource(
Uri uri
)
public:
virtual BinaryResource^ GetBinaryResource(
Uri^ uri
) abstract
abstract GetBinaryResource :
uri:Uri -> BinaryResource
public abstract function GetBinaryResource(
uri : Uri
) : BinaryResource
Parameters
- uri
Type: System.Uri
The URI to get the resource for.
Return Value
Type: Microsoft.Windows.Design.Services.BinaryResource
The resource specified by uri.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | uri is nulla null reference (Nothing in Visual Basic). |
Remarks
The StreamUri property of the returned BinaryResource object can be used to provide a URI that when passed to the WebRequest.Create method will return the binary resource stream.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Services Namespace