Connect Method
Use this method to connect the object to the profile data store.
Namespace: Microsoft.CommerceServer.Interop.Profiles
Assembly: Microsoft.CommerceServer.Interop.Profiles.BizDataAdmin (in Microsoft.CommerceServer.Interop.Profiles.BizDataAdmin.dll)
Syntax
'Declaration
Public Function Connect ( _
ByRef connectString As String, _
ByRef userName As String, _
ByRef password As String _
) As Connection
'Usage
Dim instance As BusinessDataAdminFreeThreaded
Dim connectString As String
Dim userName As String
Dim password As String
Dim returnValue As Connection
returnValue = instance.Connect(connectString, _
userName, password)
public Connection Connect(
ref string connectString,
ref string userName,
ref string password
)
public:
Connection^ Connect(
String^% connectString,
String^% userName,
String^% password
)
public function Connect(
connectString : String,
userName : String,
password : String
) : Connection
Parameters
- connectString
Type: System..::.String%
Contains the connection string.
- userName
Type: System..::.String%
Contains the user name.
- password
Type: System..::.String%
Contains the password. The default value is "".
Return Value
Type: Connection
A Connection object containing the connection to the profile data store.
Remarks
This method must be called prior to calling either the ExportCatalogs, ImportCatalogs, or GetSiteTerms method.
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.
See Also
Reference
BusinessDataAdminFreeThreaded Class