Share via


ServerRole.EnumContainingRoleNames Method

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Function EnumContainingRoleNames As StringCollection
'Usage
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

Return Value

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

See Also

Reference

ServerRole Class

Microsoft.SqlServer.Management.Smo Namespace