CimBase

The CimBase class is an abstract class inherited by all generated classes. Its functions invoke methods in the CimObject class. Basic WS-Management functions (Create, Get, Put, Enumerate, and Delete) are ultimately performed by the WS-Management transport layer, as wrapped by the DotNetWsmanClient class.

Public Member Functions

Function

Description

bool ContainsField(string name)

Check if the object contains the field with the given name.

void RemoveField(string name)

Delete a field with the given name if the field exists. If the field does not exist, do nothing.

bool IsKey(string name)

Check if a given CIM Field is designated as a key field.

bool IsRequired(string name)

Check if a given CIM Field is designated as a required field.

CimReference Create()

Create an object in an Intel AMT device via a WS-Management Create.

string Serialize()

Serialize a CIM instance To XML.

void Deserialize(string xml)

Deserialize a CIM instance from XML.

void Get(CimReference reference)

Get an instance of a known CIM Class, using a CIM reference via a WS-Management Get.

void Get(CimBase.CimKeys keys)

Get an instance of a known CIM Class using the values of the key field or fields via a WS-Management Get.

void Get()

Get an instance of a known CIM Class via a WS-Management Get.

void Put()

Send an object to an Intel AMT device via a WS-Management Put.

void Delete()

Delete an object in an Intel AMT device via a WS-Management Delete (delete the calling object).

 

Static Public Member Functions

Function

Description

static void  Delete(IWSManClient wsmanClient, Uri ResourceURI, CimBase.CimKeys keys)

Delete the object specified by keys and Resource URI.

static void  Delete(IWSManClient wsmanClient, CimReference reference)

Delete the object specified by a CimReference.

 

Protected Member Functions

Function

Description

CimBase(IWSManClient client)

Constructor that receives a WS-Management client.

CimBase()

Default constructor for the class.

string[] GetField(string name)

Get the value of a CIM field.

 

void SetField(string name, string value)

Set the value of a CIM field.

void SetField(string name, string[] value)

Set the value of a CIM field when there are multiple values.

void SetOrAddField(string name, string value)

Set or add a CIM Field.

void SetOrAddField(string name, string[] value)

Set or add CIM Field.

void AddField(string name, string value)

Add a new CIM field.

void AddField(KeyValuePair< string, string > item)

Add a new CIM Field based on a key/value pair.

void AddField(KeyValuePair< string, string[]> item)

Add New CIM Field based on a key/value pair when there are multiple values.

void Invoke< TInput, TOutput > (string methodName, TInput input, out TOutput output)

Invoke a CIM method.

bool ContainsField(string name)

Check if the object contains the field with the given name.

void  RemoveField(string name)

Delete a field with the given name if the field exists. If the field does not exist, do nothing.

 

Static Protected Member Functions

Function

Description

static List<CimBaseEprPair> Enumerate< T > (IWSManClient client, CimBase.CimKeys keys, EnumerationOptions options)

Enumerate instances of a known CIM Class specified with a ResourceUri, keys, and options.

static List<CimBaseEprPair> Enumerate< T > (IWSManClient client, EnumerationOptions options)

Enumerate instances of a known CIM Class specified by a ResourceUri and options.

static List< T > Enumerate< T > (IWSManClient client, CimBase.CimKeys keys)

Enumerate instances of a known CIM Class specified by a ResourceUri and keys.

static List< T > Enumerate< T > (IWSManClient client)

Enumerate instances of a known CIM Class specified by a ResourceUri.

static void Delete< T > (IWSManClient client)

Delete an object specified by a ResourceUri.

 

Properties

Function

Description

IWSManClient WSManClient [get, set]

Identifies the transport layer WS-Management client.

String XmlNamespace [get]

Defines the namespace of the object.

CimReference Reference [get]

Get a CimReference object corresponding to the current object.

string[] this [string name] [get, set]

Field value used in a get or set request.

List< Property > Properties [get]  

Retrieve a list of an object’s properties.

Copyright © 2006-2022, Intel Corporation. All rights reserved.