Редагувати

Поділитися через


ManagementObject.CopyTo Method

Definition

Copies the object to a different location.

Overloads

CopyTo(ManagementOperationObserver, String, PutOptions)

Copies the object to a different location, asynchronously.

CopyTo(ManagementOperationObserver, ManagementPath, PutOptions)

Copies the object to a different location, asynchronously.

CopyTo(String, PutOptions)

Copies the object to a different location.

CopyTo(ManagementPath, PutOptions)

Copies the object to a different location.

CopyTo(ManagementOperationObserver, ManagementPath)

Copies the object to a different location, asynchronously.

CopyTo(String)

Copies the object to a different location.

CopyTo(ManagementPath)

Copies the object to a different location.

CopyTo(ManagementOperationObserver, String)

Copies the object to a different location, asynchronously.

CopyTo(ManagementOperationObserver, String, PutOptions)

Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs

Copies the object to a different location, asynchronously.

public:
 void CopyTo(System::Management::ManagementOperationObserver ^ watcher, System::String ^ path, System::Management::PutOptions ^ options);
public void CopyTo (System.Management.ManagementOperationObserver watcher, string path, System.Management.PutOptions options);
member this.CopyTo : System.Management.ManagementOperationObserver * string * System.Management.PutOptions -> unit
Public Sub CopyTo (watcher As ManagementOperationObserver, path As String, options As PutOptions)

Parameters

watcher
ManagementOperationObserver

The object that will receive the results of the operation.

path
String

The path to which the object should be copied.

options
PutOptions

The options for how the object should be put.

Remarks

.NET Framework Security

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

Applies to

CopyTo(ManagementOperationObserver, ManagementPath, PutOptions)

Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs

Copies the object to a different location, asynchronously.

public:
 void CopyTo(System::Management::ManagementOperationObserver ^ watcher, System::Management::ManagementPath ^ path, System::Management::PutOptions ^ options);
public void CopyTo (System.Management.ManagementOperationObserver watcher, System.Management.ManagementPath path, System.Management.PutOptions options);
member this.CopyTo : System.Management.ManagementOperationObserver * System.Management.ManagementPath * System.Management.PutOptions -> unit
Public Sub CopyTo (watcher As ManagementOperationObserver, path As ManagementPath, options As PutOptions)

Parameters

watcher
ManagementOperationObserver

The object that will receive the results of the operation.

path
ManagementPath

The path to which the object should be copied.

options
PutOptions

The options for how the object should be put.

Remarks

.NET Framework Security

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

Applies to

CopyTo(String, PutOptions)

Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs

Copies the object to a different location.

public:
 System::Management::ManagementPath ^ CopyTo(System::String ^ path, System::Management::PutOptions ^ options);
public System.Management.ManagementPath CopyTo (string path, System.Management.PutOptions options);
member this.CopyTo : string * System.Management.PutOptions -> System.Management.ManagementPath
Public Function CopyTo (path As String, options As PutOptions) As ManagementPath

Parameters

path
String

The path to which the object should be copied.

options
PutOptions

The options for how the object should be put.

Returns

The new path of the copied object.

Remarks

.NET Framework Security

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

Applies to

CopyTo(ManagementPath, PutOptions)

Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs

Copies the object to a different location.

public:
 System::Management::ManagementPath ^ CopyTo(System::Management::ManagementPath ^ path, System::Management::PutOptions ^ options);
public System.Management.ManagementPath CopyTo (System.Management.ManagementPath path, System.Management.PutOptions options);
member this.CopyTo : System.Management.ManagementPath * System.Management.PutOptions -> System.Management.ManagementPath
Public Function CopyTo (path As ManagementPath, options As PutOptions) As ManagementPath

Parameters

path
ManagementPath

The ManagementPath to which the object should be copied.

options
PutOptions

The options for how the object should be put.

Returns

The new path of the copied object.

Remarks

.NET Framework Security

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

Applies to

CopyTo(ManagementOperationObserver, ManagementPath)

Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs

Copies the object to a different location, asynchronously.

public:
 void CopyTo(System::Management::ManagementOperationObserver ^ watcher, System::Management::ManagementPath ^ path);
public void CopyTo (System.Management.ManagementOperationObserver watcher, System.Management.ManagementPath path);
member this.CopyTo : System.Management.ManagementOperationObserver * System.Management.ManagementPath -> unit
Public Sub CopyTo (watcher As ManagementOperationObserver, path As ManagementPath)

Parameters

watcher
ManagementOperationObserver

The object that will receive the results of the operation.

path
ManagementPath

A ManagementPath specifying the path to which the object should be copied.

Remarks

.NET Framework Security

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

Applies to

CopyTo(String)

Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs

Copies the object to a different location.

public:
 System::Management::ManagementPath ^ CopyTo(System::String ^ path);
public System.Management.ManagementPath CopyTo (string path);
member this.CopyTo : string -> System.Management.ManagementPath
Public Function CopyTo (path As String) As ManagementPath

Parameters

path
String

The path to which the object should be copied.

Returns

The new path of the copied object.

Remarks

.NET Framework Security

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

Applies to

CopyTo(ManagementPath)

Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs

Copies the object to a different location.

public:
 System::Management::ManagementPath ^ CopyTo(System::Management::ManagementPath ^ path);
public System.Management.ManagementPath CopyTo (System.Management.ManagementPath path);
member this.CopyTo : System.Management.ManagementPath -> System.Management.ManagementPath
Public Function CopyTo (path As ManagementPath) As ManagementPath

Parameters

path
ManagementPath

The ManagementPath to which the object should be copied.

Returns

The new path of the copied object.

Remarks

.NET Framework Security

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

Applies to

CopyTo(ManagementOperationObserver, String)

Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs

Copies the object to a different location, asynchronously.

public:
 void CopyTo(System::Management::ManagementOperationObserver ^ watcher, System::String ^ path);
public void CopyTo (System.Management.ManagementOperationObserver watcher, string path);
member this.CopyTo : System.Management.ManagementOperationObserver * string -> unit
Public Sub CopyTo (watcher As ManagementOperationObserver, path As String)

Parameters

watcher
ManagementOperationObserver

The object that will receive the results of the operation.

path
String

The path to which the object should be copied.

Remarks

.NET Framework Security

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

Applies to