Microsoft.ManagementConsole.ScopeNodeCollectionEventArgs.GetItems C# (CSharp) Method

GetItems() public method

public GetItems ( ) : Microsoft.ManagementConsole.ScopeNode[]
return Microsoft.ManagementConsole.ScopeNode[]
        public ScopeNode[] GetItems()
        {
            return this._items;
        }

Usage Example

示例#1
0
        private void OnChildrenChanged(object sender, ScopeNodeCollectionEventArgs e)
        {
            switch (e.ChangeType)
            {
                case ScopeNodeCollectionChangeType.Add:
                    if (this._nodeSyncManager == null)
                    {
                        break;
                    }
                    this._nodeSyncManager.AddNodes(e.GetItems(), e.Index);
                    return;

                case ScopeNodeCollectionChangeType.Remove:
                    if (this._nodeSyncManager != null)
                    {
                        this._nodeSyncManager.RemoveNodes(e.GetItems());
                    }
                    break;

                default:
                    return;
            }
        }
All Usage Examples Of Microsoft.ManagementConsole.ScopeNodeCollectionEventArgs::GetItems
ScopeNodeCollectionEventArgs