Skip to main content
A newer version of this page is available. .

MSSqlLocalDBApi.ShareInstance(SecurityIdentifier, String, String) Method

Shares the specified SQL Server Express LocalDB instance with other users with the specified shared name.

Namespace: DevExpress.Xpo.DB.Helpers

Assembly: DevExpress.Xpo.v18.2.dll

Declaration

public void ShareInstance(
    SecurityIdentifier sid,
    string instancePrivateName,
    string instanceSharedName
)

Parameters

Name Type Description
sid SecurityIdentifier

A System.Security.Principal.Security object which is the security identifier (SID) of the instance owner.

instancePrivateName String

A string that is the private name for the LocalDB instance to be shared.

instanceSharedName String

A string that is the shared name for the LocalDB instance to be shared.

Remarks

Calls the LocalDBShareInstance function internally.

See Also