GetDatabaseUser 方法
Gets the name of the user that the login account is mapped to in a specified database.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Function GetDatabaseUser ( _
databaseName As String _
) As String
'用途
Dim instance As Login
Dim databaseName As String
Dim returnValue As String
returnValue = instance.GetDatabaseUser(databaseName)
public string GetDatabaseUser(
string databaseName
)
public:
String^ GetDatabaseUser(
String^ databaseName
)
member GetDatabaseUser :
databaseName:string -> string
public function GetDatabaseUser(
databaseName : String
) : String
參數
- databaseName
型別:System. . :: . .String
A String value that specifies the name of the database.
傳回值
型別:System. . :: . .String
A String value that specifies the database user name.