共用方式為


PackageUtilities Members

Include Protected Members
Include Inherited Members

A set of static utilities for filenames, paths, enumeration/string conversions, images, and other functions.

The PackageUtilities type exposes the following members.

Methods

  Name Description
Public methodStatic member ContainsInvalidFileNameChars Determines whether or not a string contains characters that are invalid for file names or paths.
Public methodStatic member ConvertFromType<T> Converts a string to an enumeration using a converter.
Public methodStatic member ConvertToType<T> Converts a string to an enumeration type.
Public methodStatic member CopyUrlToLocal Copies the specified file to the local project directory.
Public methodStatic member CreateCAUUIDFromGuidArray Creates a CAUUID from a GUID array.
Public methodStatic member EnsureOutputPath Creates the directories necessary for the given path.
Public methodStatic member GetImageList(Stream) Creates an image list from the specified stream.
Public methodStatic member GetImageList(Object) Creates a list of bitmaps from the resource handle.
Public methodStatic member GetImageList(Assembly, array<String[]) Creates a list of bitmaps from the specified assembly and resource names.
Public methodStatic member GetIntPointerFromImage Gets a pointer from a bitmap image.
Public methodStatic member GetPathDistance Calculates the distance between two paths.
Public methodStatic member GetSystemAssemblyPath Gets the path of system assemblies.
Public methodStatic member IsFileNameInvalid Determines whether or not the specified file name is invalid.
Public methodStatic member MakeRelative Returns a path for the second file that is relative to the first.
Public methodStatic member MakeRelativeIfRooted Returns a relative path if the specified file path is absolute and if it is in the same folder as the URL or in a child folder of the URL.
Public methodStatic member SetStringValueFromConvertedEnum<T> Returns a string from an enumeration value.

Top

See Also

Reference

PackageUtilities Class

Microsoft.VisualStudio.Shell Namespace