Share via


ProtectPathInfo 建構函式

適用於版本2

初始化 ProtectPathInfo 類別的新執行個體。

命名空間:  Microsoft.WebMatrix.Extensibility
組件:  Microsoft.WebMatrix.Extensibility (在 Microsoft.WebMatrix.Extensibility.dll 中)

語法

'宣告
Public Sub New ( _
    relativePath As String, _
    allowChanges As Boolean, _
    allowInNestedFolders As Boolean _
)
'用途
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
)

參數

  • relativePath
    型別:System.String

    資料夾或檔案的相對路徑。

  • allowChanges
    型別:System.Boolean

    true 表示允許變更資料夾或檔案,否則為 false。

  • allowInNestedFolders
    型別:System.Boolean

    true 表示允許要在巢狀資料夾中符合相對路徑,否則為 false。

請參閱

參考

ProtectPathInfo 類別

Microsoft.WebMatrix.Extensibility 命名空間