Method CreateAttribute
CreateAttribute(AttributeKind)
Creates a simple boolean attribute
Declaration
public AttributeValue CreateAttribute(AttributeKind kind)
Parameters
public AttributeValue CreateAttribute(AttributeKind kind)
AttributeKind | kind | Kind of attribute |
Returns
AttributeValue | AttributeValue with the specified Kind set |
CreateAttribute(AttributeKind, UInt64)
Creates an attribute with an integer value parameter
Declaration
public AttributeValue CreateAttribute(AttributeKind kind, ulong value)
Parameters
public AttributeValue CreateAttribute(AttributeKind kind, ulong value)
AttributeKind | kind | The kind of attribute |
UInt64 | value | Value for the attribute |
Returns
AttributeValue | AttributeValue with the specified kind and value |
Remarks
Not all attributes support a value and those that do don't all support a full 64bit value. The following table provides the kinds of attributes accepting a value and the allowed size of the values.
AttributeKindBit Length | |
---|---|
Alignment32 | |
StackAlignment32 | |
Dereferenceable64 | |
DereferenceableOrNull64 |
CreateAttribute(String)
Adds a valueless named attribute
Declaration
public AttributeValue CreateAttribute(string name)
Parameters
public AttributeValue CreateAttribute(string name)
String | name | Attribute name |
Returns
AttributeValue | AttributeValue with the specified name |
CreateAttribute(String, String)
Adds a Target specific named attribute with value
Declaration
public AttributeValue CreateAttribute(string name, string value)
Parameters
public AttributeValue CreateAttribute(string name, string value)
String | name | Name of the attribute |
String | value | Value of the attribute |
Returns
AttributeValue | AttributeValue with the specified name and value |