問題タブ [spuser]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
powershell - SPUser 同値演算子
PowerShell で 2 つの SPUser オブジェクト間の同等性を判断する演算子はありますか?
私のインスタンスは、サイトのリストをループして、特定のサイト プロパティの「ドメイン/ジョン スミス」を「ドメイン/ジェーン ドウ」に置き換えています。現在そのプロパティにある SPUser をプルしています。SPUser の "domain/John Smith" と同じ場合、プロパティは SPUser の "domain/Jane Doe" に置き換えられます。
この特定の例では、UserLogin または DisplayName プロパティを比較するだけで十分簡単ですが、2 人のユーザーの同等性を判断するためのより洗練された方法を探しています。