Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
A set of static utilities for file names, paths, enumeration/string conversions, images, and other functions.
Inheritance Hierarchy
Object
Microsoft.VisualStudio.Shell.PackageUtilities
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public NotInheritable Class PackageUtilities
public static class PackageUtilities
[ExtensionAttribute]
public ref class PackageUtilities abstract sealed
[<AbstractClass>]
[<Sealed>]
type PackageUtilities = class end
public final class PackageUtilities
The PackageUtilities type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
![]() ![]() |
ContainsInvalidFileNameChars | Determines whether a string contains characters that are invalid for file names or paths. |
![]() ![]() |
ConvertFromType<T> | Converts a string to an enumeration by 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) | Creates a co-createable COM object. |
![]() ![]() |
CreateInstance(Type) | Creates a co-createable COM object. |
![]() ![]() |
CreateInstance(ILocalRegistry, Guid) | Creates a co-createable COM object. |
![]() ![]() |
EnsureOutputPath | Creates the directories required 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) | Checks whether a given project matches the requirements prescribed in an AppliesTo expression. |
![]() ![]() |
IsCapabilityMatch(IVsHierarchy, String) | Checks whether a given project matches the requirements prescribed in an AppliesTo expression. |
![]() ![]() |
IsExperimentalVersionOfVsForVsipDevelopment | Determines whether this application was started by using the /rootsuffix command-line switch. |
![]() ![]() |
IsFileNameInvalid | Determines whether the specified file name is invalid. |
![]() ![]() |
MakeRelative | Returns a path for the second file that's relative to the path of the first. |
![]() ![]() |
MakeRelativeIfRooted | Returns a relative path if the specified file path is absolute and if it's in the same folder as the URL or a child folder of the URL. |
![]() ![]() |
ProfferService<TService, TImpl> | Proffers to a service container the service implemented by the specified type. |
![]() ![]() |
SetStringValueFromConvertedEnum<T> | Returns a string from an enumeration value. |
![]() ![]() |
TrimPrefix | Removes a string prefix from a string and returns the remainder of the string. If the string does not start with the prefix, returns the original string unchanged. |
![]() ![]() |
TrimSuffix | Removes a string suffix from a string and returns the remainder of the string. If the string does not end with the suffix, returns the original string unchanged. |
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.
.gif)
.gif)