Partager via


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.

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

See Also

Reference

ProfileContext Class

ProfileContext Members

ProfileContext Overload

Microsoft.CommerceServer.Runtime.Profiles Namespace