Share via


ProvideDependentAssemblyAttribute Class

Definition

Parent class for attributes that generate dependentAssembly entries.

public ref class ProvideDependentAssemblyAttribute abstract : Microsoft::VisualStudio::Shell::RegistrationAttribute
[Windows::Foundation::Metadata::WebHostHidden]
public ref class ProvideDependentAssemblyAttribute abstract : Microsoft::VisualStudio::Shell::RegistrationAttribute
public abstract class ProvideDependentAssemblyAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
type ProvideDependentAssemblyAttribute = class
    inherit RegistrationAttribute
Public MustInherit Class ProvideDependentAssemblyAttribute
Inherits RegistrationAttribute
Inheritance
ProvideDependentAssemblyAttribute
Derived

Constructors

ProvideDependentAssemblyAttribute()

Initializes a new instance of the ProvideDependentAssemblyAttribute class.

Fields

_guidUpdateNeeded

Indicates whether a GUID update is required. If true, a GUID update is required. If false (default), no update is required.

Properties

AssemblyName

Name of the target assembly.

CodeBase

A relative path from the $PackageFolder$, or an absolute path rooted from an environment variable substitution (format: %variable%).

Culture

A string that specifies the language and country/region of the assembly.

CurrentAssembly

Gets or sets the assembly which the generated dependentAssembly registry entry refers to.

Guid

Identifier of this attribute instance.

PublicKeyToken

A 16 character hex number which is the token part of the strong name of the assembly being redirected.

TypeId

Override the TypeID property in order to let the RegistrationAttribute derived classes to work with System.ComponentModel.TypeDescriptor.GetAttributes(...). An attribute derived from this one will have to override this property only if it needs a better control on the instances that can be applied to a class.

(Inherited from RegistrationAttribute)

Methods

FormatPublicKeyToken(Byte[])

Format binary Public Key Token into an hexadecimal string.

GetGuidHashString()

Gets the string that will be hashed into the Id of the attribute.

GetPackageRegKeyPath(Guid)

Gets the registry path (relative to the registry root of the application) of the VSPackage.

(Inherited from RegistrationAttribute)
GetPathToKey()

Get the path to the Key were the values for this attribute will be registered.

Register(RegistrationAttribute+RegistrationContext)

Registers this attribute with the given context.

SetValues(RegistrationAttribute+Key)

Set values handled by this attribute in the given Key.

TryParseVersion(String, Version)

Try to parse a string into a Version. Unlike Version.TryParse, this method ensures that the input consists of four numbers, as opposed to considering the build and revision numbers optional.

Unregister(RegistrationAttribute+RegistrationContext)

Unregisters this attribute.

UpdateAssemblyInformation()

Update all information not provided from the assembly to which this attribute is applied.

ValidateAttributeInformation()

Validate we have all the information that is needed.

Applies to