Compartir a través de


ISharePointProjectFeatureCollection.Add Method

Definition

Overloads

Add()

Adds a new feature.

Add(Boolean)

Adds a new feature.

Add(String)

Adds a new feature using the specified feature name.

Add(String, Boolean)

Adds a new feature using the specified feature name.

Add()

Adds a new feature.

public:
 Microsoft::VisualStudio::SharePoint::ISharePointProjectFeature ^ Add();
public Microsoft.VisualStudio.SharePoint.ISharePointProjectFeature Add ();
abstract member Add : unit -> Microsoft.VisualStudio.SharePoint.ISharePointProjectFeature
Public Function Add () As ISharePointProjectFeature

Returns

An object representing a feature.

Applies to

Add(Boolean)

Adds a new feature.

public:
 Microsoft::VisualStudio::SharePoint::ISharePointProjectFeature ^ Add(bool skipAutoPackage);
public Microsoft.VisualStudio.SharePoint.ISharePointProjectFeature Add (bool skipAutoPackage);
abstract member Add : bool -> Microsoft.VisualStudio.SharePoint.ISharePointProjectFeature
Public Function Add (skipAutoPackage As Boolean) As ISharePointProjectFeature

Parameters

skipAutoPackage
Boolean

When true, do not add the feature to the project package.

Returns

An object representing a feature.

Exceptions

Occurs when the project or package file cannot be checked out

Applies to

Add(String)

Adds a new feature using the specified feature name.

public:
 Microsoft::VisualStudio::SharePoint::ISharePointProjectFeature ^ Add(System::String ^ featureName);
public Microsoft.VisualStudio.SharePoint.ISharePointProjectFeature Add (string featureName);
abstract member Add : string -> Microsoft.VisualStudio.SharePoint.ISharePointProjectFeature
Public Function Add (featureName As String) As ISharePointProjectFeature

Parameters

featureName
String

The name of the feature.

Returns

An object representing a feature.

Exceptions

Occurs when the project file cannot be checked out

Applies to

Add(String, Boolean)

Adds a new feature using the specified feature name.

public:
 Microsoft::VisualStudio::SharePoint::ISharePointProjectFeature ^ Add(System::String ^ featureName, bool skipAutoPackage);
public Microsoft.VisualStudio.SharePoint.ISharePointProjectFeature Add (string featureName, bool skipAutoPackage);
abstract member Add : string * bool -> Microsoft.VisualStudio.SharePoint.ISharePointProjectFeature
Public Function Add (featureName As String, skipAutoPackage As Boolean) As ISharePointProjectFeature

Parameters

featureName
String

The feature name.

skipAutoPackage
Boolean

When true, do not add the feature to the project package.

Returns

An object representing a feature.

Exceptions

Occurs when the project or package file cannot be checked out

Applies to