PackageUtilities Class

 

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

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

System.Object
  Microsoft.VisualStudio.Shell.PackageUtilities

public static class PackageUtilities

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticContainsInvalidFileNameChars(String)

Determines whether a string contains characters that are invalid for file names or paths.

System_CAPS_pubmethodSystem_CAPS_staticConvertFromType<T>(String, CultureInfo)

Converts a string to an enumeration by using a converter.

System_CAPS_pubmethodSystem_CAPS_staticConvertToType<T>(T, Type, CultureInfo)

Converts a string to an enumeration type.

System_CAPS_pubmethodSystem_CAPS_staticCopyUrlToLocal(Uri, String)

Copies the specified file to the local project directory.

System_CAPS_pubmethodSystem_CAPS_staticCreateCAUUIDFromGuidArray(Guid[])

Creates a CAUUID from a GUID array.

System_CAPS_pubmethodSystem_CAPS_staticCreateInstance(Guid)

Creates a co-createable COM object.

System_CAPS_pubmethodSystem_CAPS_staticCreateInstance(ILocalRegistry, Guid)

Creates a co-createable COM object.

System_CAPS_pubmethodSystem_CAPS_staticCreateInstance(Type)

Creates a co-createable COM object.

System_CAPS_pubmethodSystem_CAPS_staticEnsureOutputPath(String)

Creates the directories required for the given path.

System_CAPS_pubmethodSystem_CAPS_staticGetImageList(Assembly, String[])

Creates a list of bitmaps from the specified assembly and resource names.

System_CAPS_pubmethodSystem_CAPS_staticGetImageList(Object)

Creates a list of bitmaps from the resource handle.

System_CAPS_pubmethodSystem_CAPS_staticGetImageList(Stream)

Creates an image list from the specified stream.

System_CAPS_pubmethodSystem_CAPS_staticGetIntPointerFromImage(Image)

Gets a pointer from a bitmap image.

System_CAPS_pubmethodSystem_CAPS_staticGetPathDistance(Uri, Uri)

Calculates the distance between two paths.

System_CAPS_pubmethodSystem_CAPS_staticGetSystemAssemblyPath()

Gets the path of system assemblies.

System_CAPS_pubmethodSystem_CAPS_staticIsCapabilityMatch(IVsBooleanSymbolPresenceChecker, String)

Determines whether a given project matches the requirements prescribed in an AppliesTo expression.

System_CAPS_pubmethodSystem_CAPS_staticIsCapabilityMatch(IVsHierarchy, String)

Checks whether a given project matches the requirements prescribed in an AppliesTo expression.

System_CAPS_pubmethodSystem_CAPS_staticIsCapabilityMatch(String, String)

Checks whether a given project matches the requirements prescribed in an AppliesTo expression.

System_CAPS_pubmethodSystem_CAPS_staticIsExperimentalVersionOfVsForVsipDevelopment(String)

Determines whether this application was started by using the /rootsuffix command-line switch.

System_CAPS_pubmethodSystem_CAPS_staticIsFileNameInvalid(String)

Determines whether the specified file name is invalid.

System_CAPS_pubmethodSystem_CAPS_staticMakeRelative(String, String)

Returns a path for the second file that's relative to the path of the first.

System_CAPS_pubmethodSystem_CAPS_staticMakeRelativeIfRooted(String, Url)

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.

System_CAPS_pubmethodSystem_CAPS_staticProfferService<TService, TImpl>(IServiceContainer)

Proffers to a service container the service implemented by the specified type.

System_CAPS_pubmethodSystem_CAPS_staticQueryService(IServiceProvider, Guid)

Gets a service exposed by a service provider based on its service type.

System_CAPS_pubmethodSystem_CAPS_staticQueryService<TService>(IServiceProvider)

Gets a service exposed by a service provider based on its service type.

System_CAPS_pubmethodSystem_CAPS_staticSetStringValueFromConvertedEnum<T>(T, CultureInfo)

Returns a string from an enumeration value.

System_CAPS_pubmethodSystem_CAPS_staticTrimPrefix(String, String, StringComparison)

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.

System_CAPS_pubmethodSystem_CAPS_staticTrimSuffix(String, String, StringComparison)

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: