共用方式為


ISharePointProjectFeatureResourceFileCollection.Add 方法

建立所指定文化特性 (Culture) 的新資源檔,並將它加入至這個集合。

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

語法

'宣告
Function Add ( _
    cultureInfo As CultureInfo _
) As ISharePointProjectFeatureResourceFile
ISharePointProjectFeatureResourceFile Add(
    CultureInfo cultureInfo
)

參數

傳回值

型別:Microsoft.VisualStudio.SharePoint.ISharePointProjectFeatureResourceFile
表示資源檔的物件。

例外狀況

例外狀況 條件
ArgumentNullException

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

ArgumentException

如果具有指定之 cultureInfo 的資源檔案已經存在,就會發生。

.NET Framework 安全性

請參閱

參考

ISharePointProjectFeatureResourceFileCollection 介面

Microsoft.VisualStudio.SharePoint 命名空間