ServerRole.EnumContainingRoleNames 方法

Gets a StringCollection which contains the names of all the ServerRole to which this ServerRole belongs.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Function EnumContainingRoleNames As StringCollection
用法
Dim instance As ServerRole 
Dim returnValue As StringCollection 

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

返回值

类型:System.Collections.Specialized.StringCollection
A StringCollection which contains the names of all the ServerRole to which this ServerRole belongs.

请参阅

参考

ServerRole 类

Microsoft.SqlServer.Management.Smo 命名空间