Click or drag to resize

ExtensionMethodsLoadFromFile Method (LicenseKey, String)

Loads the LicenseKey object from a file.

Namespace:  SKM.V3
Assembly:  SKM (in SKM.dll) Version: (
public static LicenseKey LoadFromFile(
	this LicenseKey licenseKey,
	string file


Type: SKM.V3LicenseKey
Type: SystemString
The entire path including file name, i.e. c:\folder\file.txt

Return Value

Type: LicenseKey
Returns the original object if successful. Null otherwise.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type LicenseKey. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
The current object will not be affected. Instead, you need to assign it manually, eg. licenseKey = licenseKey.LoadFromFile().
See Also