Export (0) Print
Expand All

SupportsScope Method

IIS 7.0

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

Namespace:  Microsoft.Web.Management.Server
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)

public abstract bool SupportsScope(
	ManagementScope scope
)

Parameters

scope
Type: Microsoft.Web.Management.Server..::..ManagementScope
One of the ManagementScope values of the calling host.

Return Value

Type: System..::..Boolean
true if the ManagementScope is supported; otherwise, false.

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);
} 


Community Additions

ADD
Show:
© 2014 Microsoft