TrustPolicy.Load Method (String, Boolean)
Loads the TrustPolicy object from an XML file whose path is be configured in the local web.config file.
Namespace: System.Web.Security.SingleSignOn
Assembly: System.Web.Security.SingleSignOn (in System.Web.Security.SingleSignOn.dll)
Syntax
public static TrustPolicy Load(
string filename,
bool initCerts
)
public:
static TrustPolicy^ Load(
String^ filename,
bool initCerts
)
static member Load :
filename:string *
initCerts:bool -> TrustPolicy
Public Shared Function Load (
filename As String,
initCerts As Boolean
) As TrustPolicy
Parameters
filename
Type: System.StringThe name of the XML file that contains the TrustPolicy.
initCerts
Type: System.Booleantrue to initialize the certificates on the TrustPolicy; otherwise false.
Return Value
Type: System.Web.Security.SingleSignOn.TrustPolicy
Returns the requested TrustPolicy.
See Also
TrustPolicy Class
System.Web.Security.SingleSignOn Namespace
Return to top