Attribute.CreateAttribute (ServerID, String, AttributeType, String, Boolean, IDatabase) Method

Create an attribute
Public Shared Function CreateAttribute( _ 
ByVal server_id As ServerID, _ 
ByVal name As String, _ 
ByVal type As AttributeType, _ 
ByVal description As String, _ 
ByVal is_custom_attribute As Boolean, _ 
ByVal db As IDatabase
) As EntityID
This language is not supported or no code example is available.
public static EntityID CreateAttribute( 
ServerID server_id
string name
AttributeType type
string description
bool is_custom_attribute
IDatabase db 
)
This language is not supported or no code example is available.
public:  
static EntityID^ CreateAttribute( 
ServerID^ server_id
String^ name
AttributeType type
String^ description
bool is_custom_attribute
IDatabase^ db 
)
This language is not supported or no code example is available.
public static function CreateAttribute( 
server_id : ServerID
name : String
type : AttributeType
description : String
is_custom_attribute : boolean
db : IDatabase 
) : EntityID;
This language is not supported or no code example is available.

Parameters

server_id
ServerID

the server details

name
string

the name of the attribute

type
AttributeType

the type of attribute

description
string

the description

is_custom_attribute
bool

db
IDatabase

the db connection to use

Return Value

EntityID

the created id

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1

In this article

Definition