Skip To Content

BranchVersion.NamesAsync (.NET)

BranchVersion.NamesAsync メソッドは、ブランチ バージョン名のコレクションをサーバーから取得します。

宣言

public async Task<IEnumerable<string>> Esri.ArcGISForAutoCAD.BranchVersion.NamesAsync(Document doc, string flName)

パラメーター

タイプ名前説明必須

ドキュメント

doc

操作対象の AutoCAD ドキュメント。

必須

string

flName

ブランチ バージョニングをサポートする、ドローイング内の既存の Web フィーチャ レイヤー名。

必須

リターン

タイプ説明

IEnumerable<string>

文字列としてのブランチ バージョン名のコレクション。

エラー条件に関する注記

パラメーターが無効な場合、または Web フィーチャ レイヤーがブランチ バージョニングをサポートしていない場合、このメソッドは例外をスローするか、null を返すことがあります。

Distribution Web フィーチャ レイヤーに関連付けられたブランチ バージョン名を出力します。

// Initialize
var doc = Application.DocumentManager.MdiActiveDocument;

// Get the branch names
var branchNames = await Esri.ArcGISForAutoCAD.BranchVersion.NamesAsync(doc, "Distribution");

// Print the branch names
foreach (var branchName in branchNames)
{
  doc.Editor.WriteMessage("\n" + branchName);
}

/* Example output 
sde.DEFAULT
editor01.phase1
editor01.protectedVersion
portaladmin.myPublicBranch
*/

次もご参照ください。

WebFeatureLayer.Get - 指定された Web フィーチャ レイヤーの Web フィーチャ レイヤー プロパティをディクショナリーとして取得する .NET メソッド。

esri_webfeaturelayer_branchNames - ブランチ バージョン名のリストをサーバーから取得する AutoLISP 関数。