Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Xpo

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