Share via


ProfileContext Constructor (String, String, String, DebugContext)

Initializes a new instance of the ProfileContext class using the specified connection strings and debug context.

Namespace:  Microsoft.CommerceServer.Runtime.Profiles
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Sub New ( _
    profileServiceConnectionString As String, _
    providerConnectionString As String, _
    bdaoConnectionString As String, _
    debugContext As DebugContext _
)
'Usage
Dim profileServiceConnectionString As String
Dim providerConnectionString As String
Dim bdaoConnectionString As String
Dim debugContext As DebugContext

Dim instance As New ProfileContext(profileServiceConnectionString, _
    providerConnectionString, bdaoConnectionString, _
    debugContext)
public ProfileContext(
    string profileServiceConnectionString,
    string providerConnectionString,
    string bdaoConnectionString,
    DebugContext debugContext
)
public:
ProfileContext(
    String^ profileServiceConnectionString, 
    String^ providerConnectionString, 
    String^ bdaoConnectionString, 
    DebugContext^ debugContext
)
public function ProfileContext(
    profileServiceConnectionString : String, 
    providerConnectionString : String, 
    bdaoConnectionString : String, 
    debugContext : DebugContext
)

Parameters

  • profileServiceConnectionString
    Type: System..::.String
    The connection string to the profile definitions store. This typically maps to the s_ProfileServiceConnectionString profile resource property. If encryption has been enabled on any profile properties, public and private key information needs to be included in this connection string.
  • providerConnectionString
    Type: System..::.String
    The connection string for the OLEDB Provider for Commerce Server. This typically maps to the s_CommerceProviderConnectionString Profile resource property.
  • bdaoConnectionString
    Type: System..::.String
    The connection string for the BizTalk bizdata store. This typically maps to the s_BizDataStoreConnectionString profile resource property.

Exceptions

Exception Condition
ArgumentNullException

profileServiceConnectionString, providerConnectionString, bdaoConnectionString, or debugContext is nullNothingnullptra null reference (Nothing in Visual Basic).

CommerceProfileSystemException

All connection strings do not point to the same data source server

Remarks

Use this method to create a new instance of the ProfileContext class using the specified connection strings and debug context.

Permissions

See Also

Reference

ProfileContext Class

ProfileContext Members

ProfileContext Overload

Microsoft.CommerceServer.Runtime.Profiles Namespace