共用方式為


EnumDatabaseMappings 方法

Enumerates a list of login account mappings to databases and database users.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Function EnumDatabaseMappings As DatabaseMapping()
'用途
Dim instance As Login
Dim returnValue As DatabaseMapping()

returnValue = instance.EnumDatabaseMappings()
public DatabaseMapping[] EnumDatabaseMappings()
public:
array<DatabaseMapping^>^ EnumDatabaseMappings()
member EnumDatabaseMappings : unit -> DatabaseMapping[] 
public function EnumDatabaseMappings() : DatabaseMapping[]

傳回值

型別:array<Microsoft.SqlServer.Management.Smo. . :: . .DatabaseMapping> [] () [] []
A DatabaseMapping object array value that lists the login account mappings to databases and database users.