不具合 ID 番号 |
BUG-000172893 |
送信されました | December 6, 2024 |
最終更新日 | December 23, 2024 |
適用対象 | ArcGIS Pro SDK for .NET |
見つかったバージョン | 3.4 |
オペレーティング システム | Windows OS |
オペレーティング システムのバージョン | 10.0 64 Bit |
ステータス | As Designed
開発チームによる確認後に、この動作が設計どおりであると判断されました。 詳細については、「参考情報」セクションをご参照ください。
|
参考情報
The "List by Data Sources" TOC view _must be active_ otherwise the returned data source member from
GetSelectedDataSourceMember() will always be _null_
Note the "Remarks" at: https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic27774.html in the Pro SDK API reference for .GetSelectedDataSourceMember().
"Only one DataSourceMember can be selected at one time.
A DataSourceMember will only be selected when the TOC is in the "List By Data Sources" view mode."
In other words, the moment the TOC view context changes from List By Data Sources to something else (eg List by Drawing Order, List by Selection, etc.) then the selected "DataSourceMember" becomes null.
対処法
Make the List by Data Sources view in the Contents pane active.
再現の手順