現在のデータベースのスキーマ 内の状態ありレコード タイプの名前を戻します。
状態ありレコード タイプは、状態ありレコードのテンプレートです。ほとんどのデータベースには、データベースによって保存されるデータのタイプを定義する、少なくとも 1 つの状態ありレコード タイプがあります。データベースには、セカンダリ情報を含む、いくつかのサポートされる状態なしレコード タイプもあります。
通常、戻り値には少なくとも 1 つの名前が含まれています。ただし、状態ありレコード タイプがスキーマに存在しない場合、戻り値が空の Variant の場合があります。
このメソッドを使用して名前のリストを取得すると、GetEntityDef メソッドを呼び出して、指定したレコード タイプの EntityDef オブジェクトを取得できます。
VBScript
set sessionObj = GetSession ' Get the list of names of the state-based record types. entityDefNames = sessionObj.GetReqEntityDefNames ' Iterate over the state-based record types for each name in entityDefNames set entityDefObj = sessionObj.GetEntityDef(name) ' Do something with the EntityDef object Next
Perl
$sessionObj = $entity->GetSession(); #Get the names of the state-based record types. $entityDefNames = $sessionObj->GetReqEntityDefNames(); #Iterate over the state-based record types foreach $name ( @$entityDefNames){ print $name, "¥n"; $entityDefObj = $session->GetEntityDef( $name); # Do something with the EntityDef object # ... }