Share via


ModuleProvider.SupportsScope(ManagementScope) Method

Definition

When overridden in a derived class, returns a value indicating whether the module provider supports the specified scope.

public:
 abstract bool SupportsScope(Microsoft::Web::Management::Server::ManagementScope scope);
public abstract bool SupportsScope (Microsoft.Web.Management.Server.ManagementScope scope);
abstract member SupportsScope : Microsoft.Web.Management.Server.ManagementScope -> bool
Public MustOverride Function SupportsScope (scope As ManagementScope) As Boolean

Parameters

scope
ManagementScope

One of the ManagementScope values of the calling host.

Returns

true if the ManagementScope is supported; otherwise, false.

Examples

The following example shows the SupportsScope method overridden in a derived class. The method returns true for any of the defined ManagementScope values.

public override bool SupportsScope(ManagementScope scope) {
    return (scope == ManagementScope.Application) ||
           (scope == ManagementScope.Site) ||
           (scope == ManagementScope.Server);
} 

Applies to