共用方式為


ServerRole.EnumMemberNames 方法

Gets a StringCollection which contains the names of all the logins which belong to this role.

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

語法

'宣告
Public Function EnumMemberNames As StringCollection
'用途
Dim instance As ServerRole 
Dim returnValue As StringCollection 

returnValue = instance.EnumMemberNames()
public StringCollection EnumMemberNames()
public:
StringCollection^ EnumMemberNames()
member EnumMemberNames : unit -> StringCollection
public function EnumMemberNames() : StringCollection

傳回值

型別:System.Collections.Specialized.StringCollection
A StringCollection which contains the names of all the logins which belong to this ServerRole.

請參閱

參考

ServerRole 類別

Microsoft.SqlServer.Management.Smo 命名空間