Microsoft.VisualStudio.Utilities Namespace

Classes

AbstractUIThreadOperationContext

Abstract base implementation of the IUIThreadOperationContext interface.

Accelerator

Utility methods for dealing with keyboard accelerators.

BaseDefinitionAttribute

Represents a base definition of the current definition.

BitRotator

Provides helper methods for rotating bits right or left.

ContentTypeAttribute

Declares an association between an extension and a particular content type.

ContentTypeDefinition

Defines a content type.

DefaultOrderings
DisplayNameAttribute

Provides a display name for an editor component part.

ExportImplementationAttribute

Along with ImportImplementationsAttribute enables MEF proxy pattern where a single component export serves as a proxy for the best implementation selected at run time. This pattern allows component consumers to just [Import] it, hiding the complexity of selecting one of implementations.

FeatureChangedEventArgs
FeatureDefinition
FeatureUpdatedEventArgs
FileExtensionAttribute

Identifies a file extension.

FileExtensionToContentTypeDefinition

Specifies a mapping between a content type and a file extension.

FileNameAttribute

Identifies a file name.

FileStreamStorage<TKey>

A generic implementation of stream storage in the file system. Stores files in a directory. The files it recognizes and accepts for creation can be all files in the directory or only files with a specific extension.

FontColorCategory
FontColorEntry
FontColorTheme
GZip

Provides methods for compressing/decompressing a byte array using the GZip algorithm.

ImportImplementationsAttribute

Along with ExportImplementationAttribute enables MEF proxy pattern where a single component export serves as a proxy for the best implementation selected at run time. This pattern allows component consumers to just [Import] it, hiding the complexity of selecting one of implementations.

LocalizedNameAttribute
MimeTypeAttribute

Declares an association between an extension part and a particular content type.

MultipleBaseMetadataAttribute

A base class for attributes that can appear multiple times on a single component part.

NameAttribute

Associates a name with an editor extension part.

OnDisposeActionDisposable
OptionUserModifiableAttribute
OptionUserVisibleAttribute
OrderAttribute

Orders multiple instances of an extension part.

Orderer

Performs a topological sort of orderable extension parts.

PredefinedEditorFeatureNames
PriorityAttribute
PropertyCollection

Allows property owners to control the lifetimes of the properties in the collection.

ReaderWriterLockSlimWrapper
ReusableArray<T>

Stores a reusable array. The size of the array can be either the requested size exactly or at least the requested size, depending on the value of the requiresExactSize parameter.

ReusableMemoryStream

Stores a reusable MemoryStream. The MemoryStream will only be stored for reuse if its Capacity does not exceed the maximumStreamCapacity used when constructing the ReusableMemoryStream.

ReusableResourceStore<TResource>

tores a resource that requires no constructor parameters for instantiation. See ReusableResourceStoreBase for more information.

ReusableResourceStore<TResource,TConstructorParameter>

Stores a resource that requires a single constructor parameter for instantiation. See ReusableResourceStoreBase for more information.

ReusableResourceStoreBase<TResource>

Provides a base class for storing a frequently-used object that can be reused instead of reallocated, such as StringBuilders or small arrays.

ReusableStringBuilder

Represents a reusable StringBuilder. The StringBuilder is cleared after each cleanup to remove content from the previous usage.

SerializationExtensions

Provides a set of extension methods for serialization.

SimpleDynamicMemberAccessor
SingletonBaseMetadataAttribute

A base class for attributes that can appear only once on a single component part.

StreamAccessException

Represents an error that occurred when trying to access a Stream in storage.

StreamException

Represents errors that occur when accessing Stream storage.

StreamNotFoundException

Represents the error that occurs when a Stream is not found in storage.

StreamStorageMonitor<TKey>

Monitors the size of an IStreamStorage via its IStreamStorageEvents interface. If the number of streams or the collective size of streams in the storage exceed given target thresholds, streams are deleted from the storage until the number/size of streams falls below the target thresholds.

TracedEvent
Tracer

Traces different kinds of events.

TypeConversionAttribute

Marks a class exported with a MEF ExportAttribute as a conversion from one type to another.

VersionedBinaryReader

A BinaryReader that reads a versioned byte stream.

VersionedBinaryWriter

A BinaryWriter that writes a versioned byte stream.

Structs

ColorEntry
FontInformation
Int16Size

Represents a size using Int16 values for Width/Height, meaning it occupies 4 bytes instead of the 16 bytes required for System.Windows.Size (which uses doubles for Width/Height).This is useful in situations where an integral range of [0-32767] for Width/Height is sufficient and the space occupied by the structure is of concern.

OneOrMany<T>.Enumerator

A struct-based enumerator. Just enough is implemented to satisfy the foreach pattern. Note that the enumerator is not invalidated by updates to the underlying collection.

OneOrMany<T>

A collection of T that is optimized for minimal space in the case of a single element.

ProgressInfo

Represents an update of a progress.

ReusableResourceHolder<TResource>

Holds a reference to a shared resource allocated by a ReusableResourceStoreBase and releases the resource back to the ReusableResourceStoreBase upon dispose.

Interfaces

IContentType

The content type of an object.

IContentTypeDefinition

Describes a content type that is being introduced using IContentTypeDefinitionSource.

IContentTypeDefinitionSource

Defines an alternate source for content type definitions that should be processed together with content types introduced statically using ContentTypeDefinition.

IContentTypeMetadata

Represents MEF metadata view corresponding to the ContentTypeAttributes.

IContentTypeRegistryService

The service that maintains the collection of content types.

IContentTypeRegistryService2
IFeatureController
IFeatureCookie
IFeatureDisableToken
IFeatureService
IFeatureServiceFactory
IFileExtensionRegistryService

The service that manages associations between file extensions and content types.

IFileExtensionRegistryService2

The service that manages associations between file names, extensions, and content types.

IFilePathToContentTypeProvider
IFileToContentTypeService
IGuardedOperations

Operations that guard calls to extensions code and log errors.

INameAndReplacesMetadata

Represents MEF metadata view corresponding to the NameAttribute and ReplacesAttributes.

INamed

Represents an object that provides a localized display name to be used when it's being represented to the user, for example when blaming for delays.

INamedContentTypeMetadata

Represents MEF metadata view combining IContentTypeMetadata and INameAndReplacesMetadata views.

IOrderable

Associated with an orderable part.

IOrderedStreamStorage<TKey>

Interface to an ordered storage of Streams. Each stream is identified by a key and is located at a given position (represented as an index) in storage.

IPropertyOwner

Provides ownership of an arbitrary set of properties.

IStreamStorage<TKey>

A Stream storage. Each Stream in storage is identified by a key.

IStreamStorageEvents<TKey>

Defines events to notify of changes to streams in an IStreamStorage. If an implementing class can support change notifications, it should also implement IStreamStorageEvents.

IStreamStorageKeyFactory<T>

Represents an IStreamStorage key object factory that takes as parameter a stream name.

ITelemetryIdProvider<TId>
ITracer

Provides an event tracer.

IUIThreadOperationContext

Represents a context of executing potentially long running operation on the UI thread, which enables shared two way cancellability and wait indication.

IUIThreadOperationExecutor

Executes potentially long running operation on the UI thread and provides shared two way cancellability and wait indication.

IUIThreadOperationScope

Represents a single scope of a context of executing potentially long running operation on the UI thread. Scopes allow multiple components running within an operation to share the same context.

Enums

ColorEntry.ColorType
FontColorEntry.LineStyles
StreamAccess

Specifies the type of access.

TimestampKind

Describes the kind of timestamp.

UIThreadOperationStatus

Represents a status of executing a potentially long running operation on the UI thread.

Delegates

VersionedBinaryReader.MultiVersionReadCallback

Delegate that will read the body of the stream. It explicitly handles the case where actualVersion does not equal expectedVersion.

VersionedBinaryReader.ReadCallback

Delegate that will read the body of the stream.

VersionedBinaryWriter.WriteCallback

A delegate that will write the body of the stream.