//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2008 - 2014 All Rights Reserved.
//
// File: WSIdentify.cs
//
// Contents: WSIdentify is a part of the CimFramework project.
// It implements an identify object.
//
//----------------------------------------------------------------------------
using System;
using System.Reflection;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Xml.XPath;
using System.Xml.Serialization;
using Intel.Manageability.Cim;
using Intel.Manageability.Exceptions;
namespace Intel.Manageability.Cim
{
///
/// Represent identify object
///
public class WSIdentify : CimData
{
///
/// Constructor
///
/// XmlElement which represent WSIdentify class
public WSIdentify(XmlElement element):
base("WSIdentify", "")
{
if (element == null)
throw new ArgumentNullException("element");
Deserialize(element.OuterXml);
}
///
/// Return the Protocol Version.
///
public string ProtocolVersion
{
get { return this.GetField("ProtocolVersion")[0]; }
}
///
/// Return the Protocol Vendor.
///
public string ProductVendor
{
get { return this.GetField("ProductVendor")[0]; }
}
///
/// Return the Product Version.
///
public string ProductVersion
{
get { return this.GetField("ProductVersion")[0]; }
}
///
/// Return the DASH Version.
///
public string DASHVersion
{
get { return this.GetField("DASHVersion")[0]; }
}
///
/// Return the Security Profiles.
///
public string[] SecurityProfiles
{
get{ return this["SecurityProfileName"]; }
}
public override void AddField(string name, string[] values)
{
throw (new NotSupportedException("AddField: Not supported operation for WSIdentify"));
}
public override void SetOrAddField(string name, string[] values)
{
throw (new NotSupportedException("SetOrAddField: Not supported operation for WSIdentify"));
}
public override void SetField(string name, string[] values)
{
throw (new NotSupportedException("SetField: Not supported operation for WSIdentify"));
}
}
}