DatabaseRole.EnumRoles 方法
Returns a list of the roles that the referenced database role is a member of.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Function EnumRoles As StringCollection
用法
Dim instance As DatabaseRole
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 contains the roles that the referenced database role is a member of.
示例
请参阅
参考
Microsoft.SqlServer.Management.Smo 命名空间