void SetRestoreName( Guid writerId, VssComponentType componentType, string logicalPath, string componentName, string restoreName )
Sub SetRestoreName ( writerId As Guid, componentType As VssComponentType, logicalPath As String, componentName As String, restoreName As String )
void SetRestoreName( Guid writerId, VssComponentType componentType, String^ logicalPath, String^ componentName, String^ restoreName )
A string containing the logical path of the component. For more information, see Logical Pathing of Components.
The value of the string containing the logical path used here should be the same as the string that was used when the component was added.
The logical path can be .
There are no restrictions on the characters that can appear in a logical path.
The name of the component.
The string cannot be and should contain the same component name as was the component name that was used when the component was added to the backup set using the AddComponent(Guid, Guid, VssComponentType, String, String) method.
|ArgumentNullException||One of the arguments that cannot be was|
|ArgumentException||One of the parameter values is not valid.|
|OutOfMemoryException||Out of memory or other system resources.|
|SystemException||Unexpected VSS system error. The error code is logged in the event log.|
|VssBadStateException||This method was not called during a restore operation.|
|VssObjectNotFoundException||The specified component was not found.|
|Windows XP and Windows 2003: This method requires Windows Vista or Windows Server 2008.|