LicenseManager::LockContext Method (Object^)

 

Prevents changes being made to the current LicenseContext of the given object.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public:
static void LockContext(
	Object^ contextUser
)

Parameters

contextUser
Type: System::Object^

The object whose current context you want to lock.

Exception Condition
InvalidOperationException

The context is already locked.

Use the LicenseContext to get the License of an object. This method locks the LicenseContext, preventing the License from being retrieved.

.NET Framework
Available since 1.1
Return to top
Show: