Freigeben über


FeatureCollection.Add-Methode

Fügt das Feature der Auflistung des aktivierten Features und gibt den hinzugefügten Features.

Namespace:  Microsoft.SharePoint.Client
Assemblys:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (in Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Function Add ( _
    featureId As Guid, _
    force As Boolean, _
    featdefScope As FeatureDefinitionScope _
) As Feature
'Usage
Dim instance As FeatureCollection
Dim featureId As Guid
Dim force As Boolean
Dim featdefScope As FeatureDefinitionScope
Dim returnValue As Feature

returnValue = instance.Add(featureId, _
    force, featdefScope)
public Feature Add(
    Guid featureId,
    bool force,
    FeatureDefinitionScope featdefScope
)

Parameter

  • featureId
    Typ: System.Guid

    Das Featurebezeichner des Features hinzugefügt werden soll.

    Es muss sich nicht auf ein Nullverweis (Nothing in Visual Basic).

  • force
    Typ: System.Boolean

    Gibt an, ob eine vorhandene Funktion mit demselben Feature Kennzeichen zu überschreiben.

    Dieser Parameter wird ignoriert, wenn keine Fehler vorliegen.

Rückgabewert

Typ: Microsoft.SharePoint.Client.Feature
Gibt eine Feature Instanz Erweiterung des Features für die Auflistung der aktivierten Features darstellt, und gibt den hinzugefügten Features.

Siehe auch

Referenz

FeatureCollection Klasse

FeatureCollection-Member

Microsoft.SharePoint.Client-Namespace