ProfileContext Constructor (String, DebugContext)
Initializes a new instance of the ProfileContext class using the connection string to the profile definitions store.
Namespace: Microsoft.CommerceServer.Runtime.Profiles
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub New ( _
profileServiceConnectionString As String, _
debugContext As DebugContext _
)
'Usage
Dim profileServiceConnectionString As String
Dim debugContext As DebugContext
Dim instance As New ProfileContext(profileServiceConnectionString, _
debugContext)
public ProfileContext(
string profileServiceConnectionString,
DebugContext debugContext
)
public:
ProfileContext(
String^ profileServiceConnectionString,
DebugContext^ debugContext
)
public function ProfileContext(
profileServiceConnectionString : String,
debugContext : DebugContext
)
Parameters
- profileServiceConnectionString
Type: System..::.String
The connection string to the profile definitions store.
- debugContext
Type: Microsoft.CommerceServer.Runtime.Diagnostics..::.DebugContext
The DebugContext object.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Any of profileServiceConnectionString or debugContext are nullNothingnullptra null reference (Nothing in Visual Basic). |
Remarks
Use this method to create a new instance of the ProfileContext class using the connection string to the profile definitions store.
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.