Utilities Members

A collection of static utility and helper methods.

The Utilities type exposes the following members.

Methods

  Name Description
Public methodStatic member ContainsInvalidFileNameChars Determines whether a file name or path contains illegal characters.
Public methodStatic member ConvertFromType<T> Converts a string to an enumeration using a converter.
Public methodStatic member ConvertToType<T> Calls a converter to convert an enumeration to a specific type.
Public methodStatic member CreateCADWORD Creates a CADWORD from a list of tagVsSccFilesFlags. Memory is allocated for the element.
Public methodStatic member CreateCALPOLESTR Creates a CALPOLESTR from a list of strings.
Public methodStatic member CreateSccFlagsCADWORD Creates a list of tagVsSccFilesFlags from a CADWORD.
Public methodStatic member CreateSemicolonDelimitedListOfStringFromGuids Creates a semicolon-delimited list of strings. This can be used to provide the properties for VSHPROPID_CfgPropertyPagesCLSIDList, VSHPROPID_PropertyPagesCLSIDList, or VSHPROPID_PriorityPropertyPagesCLSIDList.
Public methodStatic member CreateStringsFromCALPOLESTR Creates a list of strings from a CALPOLESTR.
Public methodStatic member GetImageList Overloaded. Creates an ImageList of 16x16 images by splitting a bitmap.
Public methodStatic member GetMsBuildPath Overloaded. Gets the path for MSBuild from the registry under the current hive.
Public methodStatic member GuidsArrayFromSemicolonDelimitedStringOfGuids Gets an array of GUIDs from a semicolon-delimited string.
Public methodStatic member IsFileNameInvalid Determines whether the specified file name is invalid.
Public methodStatic member IsInAutomationFunction Determines whether an extensibility object is currently executing automation code.
Public methodStatic member IsSameComObject Determines whether two objects represent the same COM object.
Public methodStatic member IsVisualStudioInDesignMode Determines whether the design mode context is active.
Public methodStatic member RecursivelyCopyDirectory Copies recursively from the source directory to the target (nonexistent) directory.
Public methodStatic member SetStringValueFromConvertedEnum<T> Sets a string value from an enumeration.
Public methodStatic member ValidateFileName Validates a file path by validating all the parts of the path. If the file name is invalid, it throws an exception if the project is in automation; otherwise it shows a dialog box with the error message.

Top

See Also

Reference

Utilities Class

Microsoft.VisualStudio.Package Namespace