Partilhar via


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)
Available in Sandboxed Solutions: No

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