コード例 #1
0
ファイル: CimSession.cs プロジェクト: modulexcite/pash-1
		public CimInstance GetInstance(string namespaceName, CimInstance instanceId, CimOperationOptions options)
		{
			this.AssertNotDisposed();
			if (instanceId != null)
			{
				IEnumerable<CimInstance> cimSyncInstanceEnumerable = new CimSyncInstanceEnumerable(options, this.InstanceId, this.ComputerName, (CimAsyncCallbacksReceiverBase asyncCallbacksReceiver) => this.GetInstanceCore(namespaceName, instanceId, options, asyncCallbacksReceiver));
				return cimSyncInstanceEnumerable.Single<CimInstance>();
			}
			else
			{
				throw new ArgumentNullException("instanceId");
			}
		}