PackageUtilities Class
A set of static utilities for filenames, paths, enumeration/string conversions, images, and other functions.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Shell.PackageUtilities
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣告
<ExtensionAttribute> _
Public NotInheritable Class PackageUtilities
public static class PackageUtilities
The PackageUtilities type exposes the following members.
Methods
Name | Description | |
---|---|---|
ContainsInvalidFileNameChars | Determines whether or not a string contains characters that are invalid for file names or paths. | |
ConvertFromType<T> | Converts a string to an enumeration using a converter. | |
ConvertToType<T> | Converts a string to an enumeration type. | |
CopyUrlToLocal | Copies the specified file to the local project directory. | |
CreateCAUUIDFromGuidArray | Creates a CAUUID from a GUID array. | |
CreateInstance(Guid) | ||
CreateInstance(Type) | ||
CreateInstance(ILocalRegistry, Guid) | ||
EnsureOutputPath | Creates the directories necessary for the given path. | |
GetImageList(Stream) | Creates an image list from the specified stream. | |
GetImageList(Object) | Creates a list of bitmaps from the resource handle. | |
GetImageList(Assembly, array<String[]) | Creates a list of bitmaps from the specified assembly and resource names. | |
GetIntPointerFromImage | Gets a pointer from a bitmap image. | |
GetPathDistance | Calculates the distance between two paths. | |
GetSystemAssemblyPath | Gets the path of system assemblies. | |
IsCapabilityMatch(String, String) | ||
IsCapabilityMatch(IVsHierarchy, String) | ||
IsFileNameInvalid | Determines whether or not the specified file name is invalid. | |
MakeRelative | Returns a path for the second file that is relative to the first. | |
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. | |
ProfferService<TService, TImpl> | ||
SetStringValueFromConvertedEnum<T> | Returns a string from an enumeration value. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.