PackageUtilities PackageUtilities PackageUtilities PackageUtilities PackageUtilities PackageUtilities Class

Definition

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

public ref class PackageUtilities abstract sealed
public ref class PackageUtilities abstract sealed
class PackageUtilities abstract sealed
public static class PackageUtilities
type PackageUtilities = class
Public Module PackageUtilities
Inheritance
PackageUtilitiesPackageUtilitiesPackageUtilitiesPackageUtilitiesPackageUtilitiesPackageUtilities

Methods

ContainsInvalidFileNameChars(String) ContainsInvalidFileNameChars(String) ContainsInvalidFileNameChars(String) ContainsInvalidFileNameChars(String) ContainsInvalidFileNameChars(String) ContainsInvalidFileNameChars(String)

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

ConvertFromType<T>(String, CultureInfo) ConvertFromType<T>(String, CultureInfo) ConvertFromType<T>(String, CultureInfo) ConvertFromType<T>(String, CultureInfo) ConvertFromType<T>(String, CultureInfo) ConvertFromType<T>(String, CultureInfo)

Converts a string to an enumeration by using a converter.

ConvertToType<T>(T, Type, CultureInfo) ConvertToType<T>(T, Type, CultureInfo) ConvertToType<T>(T, Type, CultureInfo) ConvertToType<T>(T, Type, CultureInfo) ConvertToType<T>(T, Type, CultureInfo) ConvertToType<T>(T, Type, CultureInfo)

Converts a string to an enumeration type.

CopyUrlToLocal(Uri, String) CopyUrlToLocal(Uri, String) CopyUrlToLocal(Uri, String) CopyUrlToLocal(Uri, String) CopyUrlToLocal(Uri, String) CopyUrlToLocal(Uri, String)

Copies the specified file to the local project directory.

CreateCAUUIDFromGuidArray(Guid[]) CreateCAUUIDFromGuidArray(Guid[]) CreateCAUUIDFromGuidArray(Guid[]) CreateCAUUIDFromGuidArray(Guid[]) CreateCAUUIDFromGuidArray(Guid[]) CreateCAUUIDFromGuidArray(Guid[])

Creates a CAUUID from a GUID array.

CreateInstance(Guid) CreateInstance(Guid) CreateInstance(Guid) CreateInstance(Guid) CreateInstance(Guid) CreateInstance(Guid)

Creates a cocreateable COM object.

CreateInstance(Type) CreateInstance(Type) CreateInstance(Type) CreateInstance(Type) CreateInstance(Type) CreateInstance(Type)

Creates a cocreateable COM object.

CreateInstance(ILocalRegistry, Guid) CreateInstance(ILocalRegistry, Guid) CreateInstance(ILocalRegistry, Guid) CreateInstance(ILocalRegistry, Guid) CreateInstance(ILocalRegistry, Guid) CreateInstance(ILocalRegistry, Guid)

Creates a cocreateable COM object.

EnsureOutputPath(String) EnsureOutputPath(String) EnsureOutputPath(String) EnsureOutputPath(String) EnsureOutputPath(String) EnsureOutputPath(String)

Creates the directories required for the given path.

GetImageList(Stream) GetImageList(Stream) GetImageList(Stream) GetImageList(Stream) GetImageList(Stream) GetImageList(Stream)

Creates an image list from the specified stream.

GetImageList(Object) GetImageList(Object) GetImageList(Object) GetImageList(Object) GetImageList(Object) GetImageList(Object)

Creates a list of bitmaps from the resource handle.

GetImageList(Assembly, String[]) GetImageList(Assembly, String[]) GetImageList(Assembly, String[]) GetImageList(Assembly, String[]) GetImageList(Assembly, String[]) GetImageList(Assembly, String[])

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

GetIntPointerFromImage(Image) GetIntPointerFromImage(Image) GetIntPointerFromImage(Image) GetIntPointerFromImage(Image) GetIntPointerFromImage(Image) GetIntPointerFromImage(Image)

Gets a pointer from a bitmap image.

GetPathDistance(Uri, Uri) GetPathDistance(Uri, Uri) GetPathDistance(Uri, Uri) GetPathDistance(Uri, Uri) GetPathDistance(Uri, Uri) GetPathDistance(Uri, Uri)

Calculates the distance between two paths.

GetSystemAssemblyPath() GetSystemAssemblyPath() GetSystemAssemblyPath() GetSystemAssemblyPath() GetSystemAssemblyPath() GetSystemAssemblyPath()

Gets the path of system assemblies.

IsCapabilityMatch(IVsBooleanSymbolPresenceChecker, String) IsCapabilityMatch(IVsBooleanSymbolPresenceChecker, String) IsCapabilityMatch(IVsBooleanSymbolPresenceChecker, String) IsCapabilityMatch(IVsBooleanSymbolPresenceChecker, String) IsCapabilityMatch(IVsBooleanSymbolPresenceChecker, String) IsCapabilityMatch(IVsBooleanSymbolPresenceChecker, String)

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

IsCapabilityMatch(IVsHierarchy, String) IsCapabilityMatch(IVsHierarchy, String) IsCapabilityMatch(IVsHierarchy, String) IsCapabilityMatch(IVsHierarchy, String) IsCapabilityMatch(IVsHierarchy, String) IsCapabilityMatch(IVsHierarchy, String)

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

IsCapabilityMatch(String, String) IsCapabilityMatch(String, String) IsCapabilityMatch(String, String) IsCapabilityMatch(String, String) IsCapabilityMatch(String, String) IsCapabilityMatch(String, String)

Checks whether a given set of project capabilities fulfills the requirements prescribed in an AppliesTo expression.

IsExperimentalVersionOfVsForVsipDevelopment(String) IsExperimentalVersionOfVsForVsipDevelopment(String) IsExperimentalVersionOfVsForVsipDevelopment(String) IsExperimentalVersionOfVsForVsipDevelopment(String) IsExperimentalVersionOfVsForVsipDevelopment(String) IsExperimentalVersionOfVsForVsipDevelopment(String)

Return true if this application was launched with the "/rootsuffix" command line switch.

IsFileNameInvalid(String) IsFileNameInvalid(String) IsFileNameInvalid(String) IsFileNameInvalid(String) IsFileNameInvalid(String) IsFileNameInvalid(String)

Determines whether the specified file name is invalid.

MakeRelative(String, String) MakeRelative(String, String) MakeRelative(String, String) MakeRelative(String, String) MakeRelative(String, String) MakeRelative(String, String)

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

MakeRelativeIfRooted(String, Url) MakeRelativeIfRooted(String, Url) MakeRelativeIfRooted(String, Url) MakeRelativeIfRooted(String, Url) MakeRelativeIfRooted(String, Url) MakeRelativeIfRooted(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.

ProfferService<TService,TImpl>(IServiceContainer) ProfferService<TService,TImpl>(IServiceContainer) ProfferService<TService,TImpl>(IServiceContainer) ProfferService<TService,TImpl>(IServiceContainer) ProfferService<TService,TImpl>(IServiceContainer) ProfferService<TService,TImpl>(IServiceContainer)

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

QueryService(IServiceProvider, Guid) QueryService(IServiceProvider, Guid) QueryService(IServiceProvider, Guid) QueryService(IServiceProvider, Guid) QueryService(IServiceProvider, Guid) QueryService(IServiceProvider, Guid)

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

QueryService<TService>(IServiceProvider) QueryService<TService>(IServiceProvider) QueryService<TService>(IServiceProvider) QueryService<TService>(IServiceProvider) QueryService<TService>(IServiceProvider) QueryService<TService>(IServiceProvider)

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

SetStringValueFromConvertedEnum<T>(T, CultureInfo) SetStringValueFromConvertedEnum<T>(T, CultureInfo) SetStringValueFromConvertedEnum<T>(T, CultureInfo) SetStringValueFromConvertedEnum<T>(T, CultureInfo) SetStringValueFromConvertedEnum<T>(T, CultureInfo) SetStringValueFromConvertedEnum<T>(T, CultureInfo)

Returns a string from an enumeration value.

TrimPrefix(String, String, StringComparison) TrimPrefix(String, String, StringComparison) TrimPrefix(String, String, StringComparison) TrimPrefix(String, String, StringComparison) TrimPrefix(String, String, StringComparison) TrimPrefix(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.

TrimSuffix(String, String, StringComparison) TrimSuffix(String, String, StringComparison) TrimSuffix(String, String, StringComparison) TrimSuffix(String, String, StringComparison) TrimSuffix(String, String, StringComparison) TrimSuffix(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.

Extension Methods

FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)
IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

Applies to