| title | IAppHostSectionDefinition::OverrideModeDefault Property |
|---|---|
| description | This article has information about syntax, return value, code, and requirements for the IAppHostSectionDefinition::OverrideModeDefault property. |
| ms.date | 10/07/2016 |
| ms.assetid | bd9ee475-e075-2771-d242-60683aca8b0f |
Gets or sets the default override behavior for the current configuration section.
HRESULT get_OverrideModeDefault(
[out,
retval] BSTR* pbstrOverrideModeDefault
);
HRESULT put_OverrideModeDefault(
BSTR bstrOverrideModeDefault
); pbstrOverrideModeDefault
A pointer to a BSTR that indicates the default override behavior. Valid values are "Allow" and "Deny".
bstrOverrideModeDefault
A BSTR that indicates the default override behavior. Valid values are "Allow" and "Deny".
An HRESULT. Possible values include, but are not limited to, those in the following table.
| Value | Description |
|---|---|
| S_OK | Indicates that the operation was successful. |
If you do not explicitly set the value of this property, the default is "Allow". "Allow" specifies that settings can be overridden in lower levels of configuration; "Deny" specifies that settings cannot be overridden.
The following code example creates a new section group and a new section, and then sets the OverrideModeDefault property value of the newly generated section to "Deny".
[!code-cppIAppHostAdminLibrary#7]
| Type | Description |
|---|---|
| Client | - IIS 7.0 on [!INCLUDEwinvista] - IIS 7.5 on Windows 7 - IIS 8.0 on Windows 8 - IIS 10.0 on Windows 10 |
| Server | - IIS 7.0 on [!INCLUDEwinsrv2008] - IIS 7.5 on Windows Server 2008 R2 - IIS 8.0 on Windows Server 2012 - IIS 8.5 on Windows Server 2012 R2 - IIS 10.0 on Windows Server 2016 |
| Product | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 - [!INCLUDEiisexp75], [!INCLUDEiisexp80], [!INCLUDEiisexp100] |
| Header | Ahadmin.h |