Provides license-related information.

The following tables list the members exposed by MsiLicense.

Public Constructors

Name Description
Public method MsiLicense

Public Properties

Name Description
Public property DateExpires Returns the date license expires. If license never expires, returns maximum date value.
Public property FilePath Gets or sets license file path. If there's no license file path set, returns empty string.
Public property Number Returns package license key number.
Public property Schema Returns package licensing schema.
Public property Server Returns IP address of the package licensing server.

IP address string is formatted in n.n.n.n manner. If licensing server IP address is not set (MsiLicenseType defaults to SingleUser) this property returns

Licensing server IP address is subject to change outside of the package installation routine.
Public property SubscriptionExpires Returns the date subscription expires. If subscription never expires, returns maximum date value.
Public property Type Returns package licensing type.

Public Methods

Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (inherited from Object)
Public method GetHashCode Serves as a hash function for a particular type. (inherited from Object)
Public method GetType Gets the Type of the current instance. (inherited from Object)
Public method IsLicensed Overloaded. Returns True if package is licensed (given optional application module), otherwise returns False.
Public method ToString Returns a String that represents the current Object. (inherited from Object)

Protected Methods

Name Description
Family method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Family method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object)

See Also