PropertyObject.GetTypeDefinitionProtection

Syntax

PropertyObject.GetTypeDefinitionProtection

Return Value

Long

Purpose

Returns the ProtectedObjectOption_None or ProtectedObjectOption_NotEditable protection level applied to a type definition. This method does not support other ProtectedObjectOptions values. The TestStand Sequence Editor enforces the ProtectedObjectOption_NotEditable option.

Remarks

You can call this method on any property of the type definition, not just the root object of the type.

Note TestStand supports password-protecting type definitions to deter unauthorized users from editing the types in the sequence editor. However, any TestStand user can continue to programmatically edit a locked type by using the TestStand PropertyObject API. National Instruments does not recommend password-protecting types as the only way of protecting intellectual property.

See Also

Engine.DisplayPasswordProtectTypeDefinitionsDialog

Engine.DisplayUnlockTypeDefinitionsDialog

Password Protect Type Definitions dialog box

PropertyObject.ClearTypeDefinitionPasswordHistory

PropertyObject.LockTypeDefinition

PropertyObject.SetTypeDefinitionProtection

PropertyObject.TypeDefinitionLocked

PropertyObject.UnlockTypeDefinition

ProtectedObjectOptions

Thread Safety of the PropertyObject API and TestStand Variables