FieldName

説明

添付ファイル フィールドの名前を戻します。

これは読み取り専用のプロパティです。表示できますが設定できません。フィールド名は、Rational® ClearQuest® API ではなく、Rational ClearQuest Designer を使用して設定されます。

構文

VBScript

attachmentField.FieldName 

Perl

$attachmentField->GetFieldName(); 
識別子
説明
attachmentField
AttachmentField オブジェクトは、レコードの 1 つの添付ファイル フィールドを表します。
戻り値
フィールドの名前を含む String。

VBScript

' This example assumes there is at least 1 attachment field 
' associated with the record. 
set attachFields = entity.AttachmentFields 
set attachField1 = attachFields.Item(0)

name = attachField1.FieldName 

Perl

# This example assumes that there is at least 1 attachment

# field associated with the record. Otherwise, 
# GetAttachmentFields won't return anything interesting and an 
# error would be generated



# Get the collection of attachment fields

$attachfields = $entity->GetAttachmentFields();



# Get the first attachment field

$attachfield1 = $attachfields->Item(0);



# And retrieve the name of that field

$name = $attachfield1->GetFieldName(); 

フィードバック