ArcObjects Library Reference (DataSourcesGDB)  

IDataServerManagerAdmin.CreateLogin Method

Creates a new login.

[Visual Basic .NET]
Public Sub CreateLogin ( _
    ByVal loginName As String, _
    ByVal isAdministrator As Boolean _
)
[C#]
public void CreateLogin (
    string loginName,
    bool isAdministrator
);
[C++]
HRESULT CreateLogin(
  BSTR loginName,
  VARIANT_BOOL isAdministrator
);
[C++]

Parameters

loginName [in]   loginName is a parameter of type BSTR isAdministrator [in]   isAdministrator is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The method creates a login on the server.  Login names are Microsoft Windows logins.

Remarks

If the isAdministrator parameter is set to true, the new user is made an adminstrator and has full administration rights, such as creating or deleting Geodatabases, adding users, etc.

You must be a server administrator to perform this operation.

See Also

IDataServerManagerAdmin Interface