Initialize Method

SQL-NS

SQL-NS

Initialize Method

The Initialize method initializes the namespace, providing the name of client application.

Applies To
SQLNamespace Object
Syntax

object.Initialize(
bstrAppName ,
[rootType] ,
[pRootInfo] ,
[hWnd])

Parts

object

Expression that evaluates to an object in the Applies To list

bstrAppName

Name of the client application

rootType

Type of object to set as root

pRootInfo

Root information

hWnd

Window handle

Remarks

Optionally, provides the default parent window for the user interface, and also a nondefault root of the namespace. For more information about the connectstring, see Programming SQL-NS Applications.

Prototype (C/C++)

HRESULT Initialize(
BSTR bstrAppName,
SQLNSRootType rootType,
VARIANT * pvarRootInfo,
long hWnd);