mirror of
https://github.com/OPCFoundation/UA-.NETStandard.git
synced 2026-10-26 04:19:53 +08:00
151 lines
4.7 KiB
C#
151 lines
4.7 KiB
C#
/* ========================================================================
|
|
* Copyright (c) 2005-2016 The OPC Foundation, Inc. All rights reserved.
|
|
*
|
|
* OPC Foundation MIT License 1.00
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person
|
|
* obtaining a copy of this software and associated documentation
|
|
* files (the "Software"), to deal in the Software without
|
|
* restriction, including without limitation the rights to use,
|
|
* copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
* copies of the Software, and to permit persons to whom the
|
|
* Software is furnished to do so, subject to the following
|
|
* conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be
|
|
* included in all copies or substantial portions of the Software.
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
* OTHER DEALINGS IN THE SOFTWARE.
|
|
*
|
|
* The complete license agreement can be found here:
|
|
* http://opcfoundation.org/License/MIT/1.00/
|
|
* ======================================================================*/
|
|
|
|
using System;
|
|
using System.Threading;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Xml;
|
|
using System.Runtime.Serialization;
|
|
using System.Security.Cryptography.X509Certificates;
|
|
using Opc.Ua.Client;
|
|
|
|
namespace Opc.Ua.Com.Server
|
|
{
|
|
/// <summary>
|
|
/// Specifies the parameters used to create a DA group item.
|
|
/// </summary>
|
|
public class ComDaCreateItemRequest
|
|
{
|
|
#region Public Properties
|
|
/// <summary>
|
|
/// Gets or sets the item id.
|
|
/// </summary>
|
|
/// <value>The item id.</value>
|
|
public string ItemId
|
|
{
|
|
get { return m_itemId; }
|
|
set { m_itemId = value; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the access path.
|
|
/// </summary>
|
|
/// <value>The access path.</value>
|
|
public string AccessPath
|
|
{
|
|
get { return m_accessPath; }
|
|
set { m_accessPath = value; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether this item is active.
|
|
/// </summary>
|
|
/// <value><c>true</c> if active; otherwise, <c>false</c>.</value>
|
|
public bool Active
|
|
{
|
|
get { return m_active; }
|
|
set { m_active = value; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the client handle.
|
|
/// </summary>
|
|
/// <value>The client handle.</value>
|
|
public int ClientHandle
|
|
{
|
|
get { return m_clientHandle; }
|
|
set { m_clientHandle = value; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the requested data type.
|
|
/// </summary>
|
|
/// <value>The requested data type.</value>
|
|
public short RequestedDataType
|
|
{
|
|
get { return m_requestedDataType; }
|
|
set { m_requestedDataType = value; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the server handle.
|
|
/// </summary>
|
|
/// <value>The server handle.</value>
|
|
public int ServerHandle
|
|
{
|
|
get { return m_serverHandle; }
|
|
set { m_serverHandle = value; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the canonical data type for the item.
|
|
/// </summary>
|
|
/// <value>The canonical data type.</value>
|
|
public short CanonicalDataType
|
|
{
|
|
get { return m_canonicalDataType; }
|
|
set { m_canonicalDataType = value; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the access rights for the item.
|
|
/// </summary>
|
|
/// <value>The access rights.</value>
|
|
public int AccessRights
|
|
{
|
|
get { return m_accessRights; }
|
|
set { m_accessRights = value; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the error associated with the operation.
|
|
/// </summary>
|
|
/// <value>The error.</value>
|
|
public int Error
|
|
{
|
|
get { return m_error; }
|
|
set { m_error = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region Private Fields
|
|
private string m_itemId;
|
|
private string m_accessPath;
|
|
private bool m_active;
|
|
private int m_clientHandle;
|
|
private short m_requestedDataType;
|
|
private int m_serverHandle;
|
|
private short m_canonicalDataType;
|
|
private int m_accessRights;
|
|
private int m_error;
|
|
#endregion
|
|
}
|
|
}
|