Share via


ISharePointProjectFeatureResourceFileCollection.Add Method

Creates a new resource file for the specified culture and adds it to this collection.

Namespace:  Microsoft.VisualStudio.SharePoint
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

Syntax

'Declaration
Function Add ( _
    cultureInfo As CultureInfo _
) As ISharePointProjectFeatureResourceFile
ISharePointProjectFeatureResourceFile Add(
    CultureInfo cultureInfo
)

Parameters

  • cultureInfo
    Type: CultureInfo

    The culture info for the new resource file.

Return Value

Type: Microsoft.VisualStudio.SharePoint.ISharePointProjectFeatureResourceFile
An object representing a resource file.

Exceptions

Exception Condition
ArgumentNullException

Occurs if cultureInfo is nulla null reference (Nothing in Visual Basic).

ArgumentException

Occurs if a resource file with the specified cultureInfo already exists.

.NET Framework Security

See Also

Reference

ISharePointProjectFeatureResourceFileCollection Interface

Microsoft.VisualStudio.SharePoint Namespace