void AddNewTarget( Guid writerId, VssComponentType componentType, string logicalPath, string componentName, string path, string fileName, bool recursive, string alternatePath )
Sub AddNewTarget ( writerId As Guid, componentType As VssComponentType, logicalPath As String, componentName As String, path As String, fileName As String, recursive As Boolean, alternatePath As String )
void AddNewTarget( Guid writerId, VssComponentType componentType, String^ logicalPath, String^ componentName, String^ path, String^ fileName, bool recursive, String^ alternatePath )
String containing the logical path of the component containing the files that are to receive a new restore target.
The value of the string containing the logical path used here should be the same as was used when the component was added to the backup set using AddComponent(Guid, Guid, VssComponentType, String, String).
The logical path can be .
There are no restrictions on the characters that can appear in a non-null logical path.
The name of the component containing the files that are to receive a new restore target.
The string should not be and should contain the same component name as was used when the component was added to the backup set using AddComponent(Guid, Guid, VssComponentType, String, String).
There are no restrictions on the characters that can appear in a non-NULL logical path.
The name of the directory or directory hierarchy containing the files to receive a new restore target.
The path can contain environment variables (for example, %SystemRoot%) but cannot contain wildcard characters.
There is no requirement that the path end with a backslash ("\"). It is up to applications that retrieve this information to check.
The file specification of the files to receive a new restore target.
A file specification cannot contain directory specifications (for example, no backslashes) but can contain the ? and * wildcard characters.
|ArgumentException||One of the parameters 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||The backup components object is not initialized, this method has been called during a restore operation, or this method has not been called within the correct sequence.|
|VssObjectNotFoundException||The component does not exist or the path and file specification do not match a component and file specification in the component.|
|VssInvalidXmlDocumentException||The XML document is not valid. Check the event log for details.|
|NotSupportedException||The operation is not supported on the current operating system.|
|This method is not supported on Windows XP|