Freigeben über


SPBackupRestoreObject.Information-Eigenschaft

Ruft ein Objekt, das Informationen zur Sicherung von enthält oder derzeit ausgeführt wird, für die Komponente, dargestellt durch die SPBackupRestoreObjectRestore-Vorgang ab.

Namespace:  Microsoft.SharePoint.Administration.Backup
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Property Information As SPBackupRestoreInformation
    Get
'Usage
Dim instance As SPBackupRestoreObject
Dim value As SPBackupRestoreInformation

value = instance.Information
public SPBackupRestoreInformation Information { get; }

Eigenschaftswert

Typ: Microsoft.SharePoint.Administration.Backup.SPBackupRestoreInformation
Eine SPBackupRestoreInformation (immer ein SPBackupInformation oder ein SPRestoreInformation), die durch einen Vorgang SPBackupRestoreConsoleObject zum Sichern oder Wiederherstellen der Komponente benötigten Informationen enthält.

Beispiele

Im folgenden Beispiel wird veranschaulicht, wie die Information -Eigenschaft in einer Implementierung der AddBackupObjects -Methode verwenden.

public void AddBackupObjects(SPBackupRestoreObject parent)
{
    if (parent == null)
    {
        throw new ArgumentNullException("parent");
    }

    SPBackupRestoreObject self = parent.AddChild(this);
    self.Information.SetParameter(SPBackupRestoreObject.SPTypeName, this.GetType());
    self.Information.SetParameter(SPBackupRestoreObject.SPDescription, "Description of custom content component");

....foreach (ChildContent child in ChildContentCollection)
    {
        IBackupRestore childIBR = child as IBackupRestore;
        childIBR.AddBackupObjects(self);
    }
}
Public Sub AddBackupObjects(ByVal parent As SPBackupRestoreObject)
    If parent Is Nothing Then
        Throw New ArgumentNullException("parent")
    End If

    Dim self As SPBackupRestoreObject = parent.AddChild(Me)
    self.Information.SetParameter(SPBackupRestoreObject.SPTypeName, Me.GetType())
    self.Information.SetParameter(SPBackupRestoreObject.SPDescription, "Description of custom content component")

    For Each child As ChildContent In ChildContentCollection
        Dim childIBR As IBackupRestore = TryCast(child, IBackupRestore)
        childIBR.AddBackupObjects(self)
    Next child
End Sub

Siehe auch

Referenz

SPBackupRestoreObject Klasse

SPBackupRestoreObject-Member

Microsoft.SharePoint.Administration.Backup-Namespace