Freigeben über


FeatureCollection.Remove-Methode

Die Sammlung von Features entfernt das Feature.

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 Sub Remove ( _
    featureId As Guid, _
    force As Boolean _
)
'Usage
Dim instance As FeatureCollection
Dim featureId As Guid
Dim force As Boolean

instance.Remove(featureId, force)
public void Remove(
    Guid featureId,
    bool force
)

Parameter

  • featureId
    Typ: System.Guid

    Das Featurebezeichner des zu entfernenden Features.

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

  • force
    Typ: System.Boolean

    Gibt an, ob den Vorgang fortgesetzt, auch wenn Fehler vorliegen erzwingen.

    Dieser Parameter wird ignoriert, wenn keine Fehler vorliegen.

Ausnahmen

Ausnahme Bedingung
InvalidOperationException

Das Feature ist nicht aktiviertes Feature oder das Feature kann nicht deaktiviert werden, und der Parameter force nicht auf truefestgelegt wurde. Fehlercode:-1.

UnauthorizedAccessException

Der aktuelle Benutzer verfügt nicht über ausreichende Berechtigungen. Fehlercode:-2147024891.

Siehe auch

Referenz

FeatureCollection Klasse

FeatureCollection-Member

Microsoft.SharePoint.Client-Namespace