漏洞 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.
重现步骤