GPMigrationTable.UpdateDestination Method (String)

 

Updates the destination of the specified entry to SameAsSource 

Namespace:   Microsoft.GroupPolicy
Assembly:  Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)

Syntax

public GPMapEntry UpdateDestination(
    string source
)
public:
GPMapEntry^ UpdateDestination(
    String^ source
)
member UpdateDestination : 
        source:string -> GPMapEntry
Public Function UpdateDestination (
    source As String
) As GPMapEntry

Parameters

  • source
    Type: System.String

    The source field of the entry to update. This is a security principal or a UNC path.

Return Value

Type: Microsoft.GroupPolicy.GPMapEntry

Returns GPMapEntry. The updated map entry.

Exceptions

Exception Condition
ArgumentException

source is an empty string (“”).

ArgumentNullException

source is null.

Remarks

The DestinationOption property of the entry is set to SameAsSource. (The security principal or UNC path is migrated unchanged to the destination.)

See Also

UpdateDestination Overload
GPMigrationTable Class
Microsoft.GroupPolicy Namespace

Return to top