共用方式為


ISharePointProjectFeatureResourceFileCollection.Item 屬性

取得依檔名指定的功能資源檔。

命名空間:  Microsoft.VisualStudio.SharePoint
組件:  Microsoft.VisualStudio.SharePoint (在 Microsoft.VisualStudio.SharePoint.dll 中)

語法

'宣告
ReadOnly Default Property Item ( _
    fileName As String _
) As ISharePointProjectFeatureResourceFile
ISharePointProjectFeatureResourceFile this[
    string fileName
] { get; }

參數

  • fileName
    型別:System.String
    功能資料夾的相對路徑,或功能的絕對檔案路徑。

屬性值

型別:Microsoft.VisualStudio.SharePoint.ISharePointProjectFeatureResourceFile
如果找到則為表示功能的物件,如果找不到則為 nullNull 參照 (即 Visual Basic 中的 Nothing)。

例外狀況

例外狀況 條件
ArgumentNullException

如果 fileName 為 nullNull 參照 (即 Visual Basic 中的 Nothing),就會發生。

.NET Framework 安全性

請參閱

參考

ISharePointProjectFeatureResourceFileCollection 介面

Microsoft.VisualStudio.SharePoint 命名空間