Share via


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.

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

See Also

Reference

ProfileContext Class

ProfileContext Members

ProfileContext Overload

Microsoft.CommerceServer.Runtime.Profiles Namespace