IWebMatrixHost.ApplyPathProtection 方法

適用於版本2

將一組 IProtectPathInfo 規則套用至網站的檔案。

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

語法

'宣告
Sub ApplyPathProtection ( _
    protectPathInfos As IEnumerable(Of IProtectPathInfo) _
)
'用途
Dim instance As IWebMatrixHost 
Dim protectPathInfos As IEnumerable(Of IProtectPathInfo)

instance.ApplyPathProtection(protectPathInfos)
void ApplyPathProtection(
    IEnumerable<IProtectPathInfo> protectPathInfos
)
void ApplyPathProtection(
    IEnumerable<IProtectPathInfo^>^ protectPathInfos
)
abstract ApplyPathProtection : 
        protectPathInfos:IEnumerable<IProtectPathInfo> -> unit
function ApplyPathProtection(
    protectPathInfos : IEnumerable<IProtectPathInfo>
)

參數

備註

重設任何已有的防護。

請參閱

參考

IWebMatrixHost 介面

Microsoft.WebMatrix.Extensibility 命名空間