Constable Authorization Engine 2.0 BETA

AuthorizationPolicyLoader.LoadFromXmlResource Method (String, Encoding)

[This is preliminary documentation and subject to change.]

Loads an instance of the AuthorizationPolicy class populated from an authorization policy stored as a XML resource in the specified encoding in the calling assembly's manifest.

[Visual Basic]
Overloads Public Shared Function LoadFromXmlResource( _
   ByVal resourceName As String, _
   ByVal encoding As Encoding _
) As AuthorizationPolicy
[C#]
public static AuthorizationPolicy LoadFromXmlResource(
   string resourceName,
   Encoding encoding
);

Parameters

resourceName
The name of the resource embedded in the calling assembly's manifest.
encoding
The encoding of the XML resource.

Return Value

An instance of the AuthorizationPolicy class populated from the given resource.

Remarks

Set the LoadFromXmlResource overload for an example.

See Also

AuthorizationPolicyLoader Class | LaMarvin.Constable Namespace | AuthorizationPolicyLoader.LoadFromXmlResource Overload List