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