Share via


ProfileContext Constructor (String, String, DebugContext) (BCL)

Use this method to create a new instance of the ProfileContext class using the connection strings to the profile definitions store and to the OLEDB Provider for Commerce Server.

Definition

[Visual Basic .NET]

Public Sub New( _ByValprofilesvcConnstr As System.String, _
  ByValprofilesCatalog As System.String, _
  ByValdbgContext As DebugContext _
) 

[C#]

public ProfileContext(System.StringprofilesvcConnstr,
  System.StringprofilesCatalog,
  DebugContextdbgContext);

Parameters

[Visual Basic .NET]

  • profilesvcConnstr
    The connection to the profile definitions store.
  • profilesCatalog
    The connection string for the OLEDB Provider for Commerce Server.
  • dbgContext
    The DebugContext object.

[C#]

  • profilesvcConnstr
    The connection to the profile definitions store.
  • providerConnstr
    The connection string for the OLEDB Provider for Commerce Server.
  • dbgContext
    The DebugContext object.

Remarks

Throws an ArgumentNullException if any of the parameters are missing.

When this form of the constructor is used, the CommerceOleDbProvider property is not available for use.

Requirements

Namespace: Microsoft.CommerceServer.Runtime.Profiles

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Runtime.dll

See Also

Code to Build a Login Page

Code to Create and Set Profile Properties

Code to Retrieve and Display Profile Properties

Code to Use the SiteTerm Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.