IAttributeElementCreateUserAttribute(String, Double, ODBEntityEnum, IPCBIWindow) Method
User Attributes are handled differently, you need this static method to create the user attribute and set the value.
Namespace: PCBI.AutomationAssembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
public static IAttributeElement CreateUserAttribute(
string UserAttributeName,
double Value,
ODBEntityEnum EntityType,
IPCBIWindow Parent
)
Public Shared Function CreateUserAttribute (
UserAttributeName As String,
Value As Double,
EntityType As ODBEntityEnum,
Parent As IPCBIWindow
) As IAttributeElement
public:
static IAttributeElement^ CreateUserAttribute(
String^ UserAttributeName,
double Value,
ODBEntityEnum EntityType,
IPCBIWindow^ Parent
)
static member CreateUserAttribute :
UserAttributeName : string *
Value : float *
EntityType : ODBEntityEnum *
Parent : IPCBIWindow -> IAttributeElement
- UserAttributeName String
- The name of the new user attribute.
- Value Double
- Value of the user attribute.
- EntityType ODBEntityEnum
-
- Parent IPCBIWindow
- User attributes always need an IPCBIWindow to reference to.
IAttributeElementNew attribute elment of this created user attribute.