AuthManager Constructor
Initializes a new instance of the AuthManager class.
Namespace: Microsoft.CommerceServer.Runtime
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub New ( _
siteName As String, _
debugContext As DebugContext _
)
'Usage
Dim siteName As String
Dim debugContext As DebugContext
Dim instance As New AuthManager(siteName, _
debugContext)
public AuthManager(
string siteName,
DebugContext debugContext
)
public:
AuthManager(
String^ siteName,
DebugContext^ debugContext
)
public function AuthManager(
siteName : String,
debugContext : DebugContext
)
Parameters
- siteName
Type: System..::.String
The Commerce Server site name.
- debugContext
Type: Microsoft.CommerceServer.Runtime.Diagnostics..::.DebugContext
An instance of the DebugContext class that determines how debugging and tracing information will be output to the user.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | siteName or debugContext is nullNothingnullptra null reference (Nothing in Visual Basic). |
Remarks
After any AuthManager instance has been initialized within an ASP.NET-based site, any new instances of the AuthManager class initialized within that site use the cached resources as loaded by the first constructor. Therefore, even if a different value is used for the siteName parameter, the AuthManager object will still be configured to run using the site configuration specified in the first instance.
Permissions
- 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.