CimSession.GetInstanceAsync Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
C++
public:
Microsoft::Management::Infrastructure::Generic::CimAsyncResult<Microsoft::Management::Infrastructure::CimInstance ^> ^ GetInstanceAsync(System::String ^ namespaceName, Microsoft::Management::Infrastructure::CimInstance ^ instanceId);
public Microsoft.Management.Infrastructure.Generic.CimAsyncResult<Microsoft.Management.Infrastructure.CimInstance> GetInstanceAsync (string namespaceName, Microsoft.Management.Infrastructure.CimInstance instanceId);
member this.GetInstanceAsync : string * Microsoft.Management.Infrastructure.CimInstance -> Microsoft.Management.Infrastructure.Generic.CimAsyncResult<Microsoft.Management.Infrastructure.CimInstance>
Public Function GetInstanceAsync (namespaceName As String, instanceId As CimInstance) As CimAsyncResult(Of CimInstance)
Parameters
- namespaceName
- String
- instanceId
- CimInstance
Returns
Applies to
PowerShell SDK 7.4.0 and other versions
Product | Versions |
---|---|
PowerShell SDK | 7.2.0, 7.3.0, 7.4.0 |
Windows PowerShell | 5.1.0.0 |
C++
public:
Microsoft::Management::Infrastructure::Generic::CimAsyncResult<Microsoft::Management::Infrastructure::CimInstance ^> ^ GetInstanceAsync(System::String ^ namespaceName, Microsoft::Management::Infrastructure::CimInstance ^ instanceId, Microsoft::Management::Infrastructure::Options::CimOperationOptions ^ options);
public Microsoft.Management.Infrastructure.Generic.CimAsyncResult<Microsoft.Management.Infrastructure.CimInstance> GetInstanceAsync (string namespaceName, Microsoft.Management.Infrastructure.CimInstance instanceId, Microsoft.Management.Infrastructure.Options.CimOperationOptions options);
member this.GetInstanceAsync : string * Microsoft.Management.Infrastructure.CimInstance * Microsoft.Management.Infrastructure.Options.CimOperationOptions -> Microsoft.Management.Infrastructure.Generic.CimAsyncResult<Microsoft.Management.Infrastructure.CimInstance>
Public Function GetInstanceAsync (namespaceName As String, instanceId As CimInstance, options As CimOperationOptions) As CimAsyncResult(Of CimInstance)
Parameters
- namespaceName
- String
- instanceId
- CimInstance
- options
- CimOperationOptions
Returns
Applies to
PowerShell SDK 7.4.0 and other versions
Product | Versions |
---|---|
PowerShell SDK | 7.2.0, 7.3.0, 7.4.0 |
Windows PowerShell | 5.1.0.0 |