次の方法で共有


SPWebApplicationBuilder.AutomaticallyResetDefaultsAfterCreation property

Gets or sets a Boolean value that specifies whether to reset the default values after the Create method is called.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property AutomaticallyResetDefaultsAfterCreation As Boolean
    Get
    Set
'Usage
Dim instance As SPWebApplicationBuilder
Dim value As Boolean

value = instance.AutomaticallyResetDefaultsAfterCreation

instance.AutomaticallyResetDefaultsAfterCreation = value
public bool AutomaticallyResetDefaultsAfterCreation { get; set; }

Property value

Type: System.Boolean
true if the default values should be reset; otherwise, false. The default value is true.

Remarks

The AutomaticallyResetDefaultsAfterCreation property can be set to false to create a series of similar Web applications, but you must always change the value that is contained by the Uri() property.

See also

Reference

SPWebApplicationBuilder class

SPWebApplicationBuilder members

Microsoft.SharePoint.Administration namespace