Share via


ProtectPathInfo Constructor

Applies to v2.

Initializes a new instance of the ProtectPathInfo class.

Namespace:  Microsoft.WebMatrix.Extensibility
Assembly:  Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)

Syntax

'Declaration
Public Sub New ( _
    relativePath As String, _
    allowChanges As Boolean, _
    allowInNestedFolders As Boolean _
)
'Usage
Dim relativePath As String 
Dim allowChanges As Boolean 
Dim allowInNestedFolders As Boolean 

Dim instance As New ProtectPathInfo(relativePath, _
    allowChanges, allowInNestedFolders)
public ProtectPathInfo(
    string relativePath,
    bool allowChanges,
    bool allowInNestedFolders
)
public:
ProtectPathInfo(
    String^ relativePath, 
    bool allowChanges, 
    bool allowInNestedFolders
)
new : 
        relativePath:string * 
        allowChanges:bool * 
        allowInNestedFolders:bool -> ProtectPathInfo
public function ProtectPathInfo(
    relativePath : String, 
    allowChanges : boolean, 
    allowInNestedFolders : boolean
)

Parameters

  • relativePath
    Type: System.String

    Relative path of the folder or file.

  • allowChanges
    Type: System.Boolean

    true to allow changes to the folder or file; otherwise, false.

  • allowInNestedFolders
    Type: System.Boolean

    true to allow the relative path to match in nested folders; otherwise, false.

See Also

Reference

ProtectPathInfo Class

Microsoft.WebMatrix.Extensibility Namespace