User.EnumRoles 方法
Enumerates a list of roles of which the database user is a member.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Function EnumRoles As StringCollection
'用途
Dim instance As User
Dim returnValue As StringCollection
returnValue = instance.EnumRoles()
public StringCollection EnumRoles()
public:
StringCollection^ EnumRoles()
member EnumRoles : unit -> StringCollection
public function EnumRoles() : StringCollection
傳回值
型別:System.Collections.Specialized.StringCollection
A StringCollection system object value that specifies the roles of which the database is a member.
範例
請參閱
參考
Microsoft.SqlServer.Management.Smo 命名空間