99 lines
2.8 KiB
C#
99 lines
2.8 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// 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
|
|
{
|
|
/// <summary>
|
|
/// Represent identify object
|
|
/// </summary>
|
|
public class WSIdentify : CimData
|
|
{
|
|
/// <summary>
|
|
/// Constructor
|
|
/// </summary>
|
|
/// <param name="element">XmlElement which represent WSIdentify class</param>
|
|
public WSIdentify(XmlElement element):
|
|
base("WSIdentify", "")
|
|
{
|
|
if (element == null)
|
|
throw new ArgumentNullException("element");
|
|
Deserialize(element.OuterXml);
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// Return the Protocol Version.
|
|
/// </summary>
|
|
public string ProtocolVersion
|
|
{
|
|
get { return this.GetField("ProtocolVersion")[0]; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Return the Protocol Vendor.
|
|
/// </summary>
|
|
public string ProductVendor
|
|
{
|
|
get { return this.GetField("ProductVendor")[0]; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Return the Product Version.
|
|
/// </summary>
|
|
public string ProductVersion
|
|
{
|
|
get { return this.GetField("ProductVersion")[0]; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Return the DASH Version.
|
|
/// </summary>
|
|
public string DASHVersion
|
|
{
|
|
get { return this.GetField("DASHVersion")[0]; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Return the Security Profiles.
|
|
/// </summary>
|
|
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"));
|
|
}
|
|
}
|
|
}
|