Eplan Platform API
Eplan.EplApi.DataModel Namespace / IWriteProtection Interface
Members Example

IWriteProtection Interface
Defines methods to manipulate write protection on object.
Syntax
public interface IWriteProtection 
Example
The following example shows how to use the interface.
oFunction.Properties.HARNESS_NAME = "old value";
oFunction.WriteProtected = true;
using (UndoStep oUndoStep = new UndoManager().CreateUndoStep())
{
    oFunction.Properties.HARNESS_NAME = "new value";
}
Console.WriteLine(oFunction.Properties.HARNESS_NAME.ToString());  //will be 'old value' returned


Public Properties
 NameDescription
 PropertyChecks if an object is currently write protected or sets manual write protection  
Top
Public Methods
 NameDescription
 MethodChecks what kind of a write protection was set.  
 MethodTemporarily disables write protection. Note that current write protection flags are not cleared.  
Top
See Also