Compartilhar via


SPObjectImportedEventArgs Constructor

Creates a new instance of the SPObjectImportedEventArgs class that includes type information and also source and target identifiers and locations.

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

Syntax

'Declaration
Public Sub New ( _
    type As SPDeploymentObjectType, _
    sourceUrl As String, _
    targetUrl As String, _
    sourceId As Guid, _
    tagetId As Guid _
)
'Usage
Dim type As SPDeploymentObjectType
Dim sourceUrl As String
Dim targetUrl As String
Dim sourceId As Guid
Dim tagetId As Guid

Dim instance As New SPObjectImportedEventArgs(type, sourceUrl, _
    targetUrl, sourceId, tagetId)
public SPObjectImportedEventArgs(
    SPDeploymentObjectType type,
    string sourceUrl,
    string targetUrl,
    Guid sourceId,
    Guid tagetId
)

Parameters

  • sourceUrl
    Type: System.String

    The string URL of the parent object of the specified object in the source site collection.

  • targetUrl
    Type: System.String

    The string URL of the parent object of the specified object in the target site collection.

  • sourceId
    Type: System.Guid

    Unique identifier (GUID) for the source site collection.

  • tagetId
    Type: System.Guid

    Unique identifier (GUID) for the target site collection.

See Also

Reference

SPObjectImportedEventArgs Class

SPObjectImportedEventArgs Members

Microsoft.SharePoint.Deployment Namespace