共用方式為


TaskUIUtils.IsMemberOfServerRole(Server, String) Method

Definition

public:
 static bool IsMemberOfServerRole(Microsoft::SqlServer::Management::Smo::Server ^ server, System::String ^ serverRole);
public static bool IsMemberOfServerRole (Microsoft.SqlServer.Management.Smo.Server server, string serverRole);
static member IsMemberOfServerRole : Microsoft.SqlServer.Management.Smo.Server * string -> bool
Public Shared Function IsMemberOfServerRole (server As Server, serverRole As String) As Boolean

Parameters

server
Server
serverRole
String

Returns

Applies to