ModuleProvider.SupportsScope(ManagementScope) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for