public void DeleteInstance(string namespaceName, CimInstance instance, CimOperationOptions options) { this.AssertNotDisposed(); if (instance != null) { IEnumerable<CimInstance> cimSyncInstanceEnumerable = new CimSyncInstanceEnumerable(options, this.InstanceId, this.ComputerName, (CimAsyncCallbacksReceiverBase asyncCallbacksReceiver) => this.DeleteInstanceCore(namespaceName, instance, options, asyncCallbacksReceiver)); cimSyncInstanceEnumerable.Count<CimInstance>(); return; } else { throw new ArgumentNullException("instance"); } }