mscorlib(4.0.0.0) API with additions
System.ApplicationId Class Reference

Contains information used to uniquely identify a manifest-based application. This class cannot be inherited. More...

Collaboration diagram for System.ApplicationId:
[legend]

Public Member Functions

 ApplicationId (byte[] publicKeyToken, string name, Version version, string processorArchitecture, string culture)
 Initializes a new instance of the T:System.ApplicationId class. More...
 
ApplicationId Copy ()
 Creates and returns an identical copy of the current application identity. More...
 
override string ToString ()
 Creates and returns a string representation of the application identity. More...
 
override bool Equals (object o)
 Determines whether the specified T:System.ApplicationId object is equivalent to the current T:System.ApplicationId. More...
 
override int GetHashCode ()
 Gets the hash code for the current application identity. More...
 

Public Attributes

string Name => m_name
 Gets the name of the application. More...
 
Version Version => m_version
 Gets the version of the application. More...
 
string ProcessorArchitecture => m_processorArchitecture
 Gets the target processor architecture for the application. More...
 
string Culture => m_culture
 Gets a string representing the culture information for the application. More...
 

Properties

byte [] PublicKeyToken [get]
 Gets the public key token for the application. More...
 

Detailed Description

Contains information used to uniquely identify a manifest-based application. This class cannot be inherited.

Definition at line 10 of file ApplicationId.cs.

Constructor & Destructor Documentation

◆ ApplicationId()

System.ApplicationId.ApplicationId ( byte []  publicKeyToken,
string  name,
Version  version,
string  processorArchitecture,
string  culture 
)

Initializes a new instance of the T:System.ApplicationId class.

Parameters
publicKeyTokenThe array of bytes representing the raw public key data.
nameThe name of the application.
versionA T:System.Version object that specifies the version of the application.
processorArchitectureThe processor architecture of the application.
cultureThe culture of the application.
Exceptions
T:System.ArgumentNullExceptionname is null.-or- version is null.-or- publicKeyToken is null.
T:System.ArgumentExceptionname is an empty string.

Definition at line 66 of file ApplicationId.cs.

Member Function Documentation

◆ Copy()

ApplicationId System.ApplicationId.Copy ( )

Creates and returns an identical copy of the current application identity.

Returns
An T:System.ApplicationId object that represents an exact copy of the original.

Definition at line 94 of file ApplicationId.cs.

◆ Equals()

override bool System.ApplicationId.Equals ( object  o)

Determines whether the specified T:System.ApplicationId object is equivalent to the current T:System.ApplicationId.

Parameters
oThe T:System.ApplicationId object to compare to the current T:System.ApplicationId.
Returns
true if the specified T:System.ApplicationId object is equivalent to the current T:System.ApplicationId; otherwise, false.

Definition at line 133 of file ApplicationId.cs.

◆ GetHashCode()

override int System.ApplicationId.GetHashCode ( )

Gets the hash code for the current application identity.

Returns
The hash code for the current application identity.

Definition at line 160 of file ApplicationId.cs.

◆ ToString()

override string System.ApplicationId.ToString ( )

Creates and returns a string representation of the application identity.

Returns
A string representation of the application identity.

Definition at line 101 of file ApplicationId.cs.

Member Data Documentation

◆ Culture

string System.ApplicationId.Culture => m_culture

Gets a string representing the culture information for the application.

Returns
The culture information for the application.

Definition at line 48 of file ApplicationId.cs.

◆ Name

string System.ApplicationId.Name => m_name

Gets the name of the application.

Returns
The name of the application.

Definition at line 36 of file ApplicationId.cs.

◆ ProcessorArchitecture

string System.ApplicationId.ProcessorArchitecture => m_processorArchitecture

Gets the target processor architecture for the application.

Returns
The processor architecture of the application.

Definition at line 44 of file ApplicationId.cs.

◆ Version

Version System.ApplicationId.Version => m_version

Gets the version of the application.

Returns
A T:System.Version that specifies the version of the application.

Definition at line 40 of file ApplicationId.cs.

Property Documentation

◆ PublicKeyToken

byte [] System.ApplicationId.PublicKeyToken
get

Gets the public key token for the application.

Returns
A byte array containing the public key token for the application.

Definition at line 25 of file ApplicationId.cs.


The documentation for this class was generated from the following file: