Copies the specified file to the local project directory.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
'宣言
Public Shared Sub CopyUrlToLocal ( _
uri As Uri, _
local As String _
)
'使用
Dim uri As Uri
Dim local As String
PackageUtilities.CopyUrlToLocal(uri, local)
public static void CopyUrlToLocal(
Uri uri,
string local
)
public:
static void CopyUrlToLocal(
Uri^ uri,
String^ local
)
public static function CopyUrlToLocal(
uri : Uri,
local : String
)
Parameters
uri
Type: System.UriThe Uri to copy.
local
Type: System.StringThe local resource to copy it to.
Remarks
This method supports the downloading of HTTP resources, which may cause a delay before returning.
Permissions
- 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.