ProfileContext Constructor (String, String, DebugContext)
Initializes a new instance of the ProfileContext class using the connection strings to the profile definitions store and to the profile definitions catalog name.
Namespace: Microsoft.CommerceServer.Runtime.Profiles
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub New ( _
profileServiceConnectionString As String, _
profilesCatalog As String, _
debugContext As DebugContext _
)
'Usage
Dim profileServiceConnectionString As String
Dim profilesCatalog As String
Dim debugContext As DebugContext
Dim instance As New ProfileContext(profileServiceConnectionString, _
profilesCatalog, debugContext)
public ProfileContext(
string profileServiceConnectionString,
string profilesCatalog,
DebugContext debugContext
)
public:
ProfileContext(
String^ profileServiceConnectionString,
String^ profilesCatalog,
DebugContext^ debugContext
)
public function ProfileContext(
profileServiceConnectionString : String,
profilesCatalog : String,
debugContext : DebugContext
)
Parameters
- profileServiceConnectionString
Type: System..::.String
The connection string to the profile definitions store.
- profilesCatalog
Type: System..::.String
Profile definitions catalog name.
- debugContext
Type: Microsoft.CommerceServer.Runtime.Diagnostics..::.DebugContext
The DebugContext object.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Any of profileServiceConnectionString, profilesCatalog 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 strings to the profile definitions store and to the profile definitions catalog name.
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.