示例#1
0
		//-----------------------------

		/// <summary>
		/// Initializes a new instance of the <see cref="AddressSpaceElement"/> class with
		/// the value indicated by an element name and an element handle.
		/// </summary>
		/// <param name="aType">The type of the address space element</param>
		/// <param name="aName">A name for the address space element.</param>
		/// <param name="aQualifiedName">The qualified name for the address space element.</param>
		/// <param name="aHandle">A handle for the address space element.</param>
		/// <include
		///  file='TBNC.doc.xml'
		/// path='//class[@name="AddressSpaceElement"]/constructor[@name="AddressSpaceElement"]/doc/*'
		/// />
		public AddressSpaceElement(
			EnumAddressSpaceElementType aType,
			string aName,
			string aQualifiedName,
			uint aHandle)
		{
			m_type = aType;
			m_name = aName;
			m_qName = aQualifiedName;
			m_objectElementHandle = aHandle;
		}
示例#2
0
		//-
		#endregion

		#region	//	Public Constructors
		//-----------------------------

		/// <summary>
		/// Initializes a new instance of the <see cref="DaAddressSpaceElement"/> class with
		/// the values specified.
		/// </summary>
		/// <param name="aType">The type of the address space element</param>
		/// <param name="aName">The name of the address space element</param>
		/// <param name="anItemId">The ItemId of the address space element</param>
		/// <param name="anItemPath">The ItemPath for the address space element.</param>
		/// <param name="anObjectHandle">A handle for the address space element.</param>
		/// <param name="aSession">The owner session for this element</param>
		/// <include
		///  file='TBNC.doc.xml'
		///  path='//class[@name="DaAddressSpaceElement"]/constructor[@name="DaAddressSpaceElement"]/doc/*'
		/// />
		public DaAddressSpaceElement(
			EnumAddressSpaceElementType aType,
			string aName,
			string anItemId,
			string anItemPath,
			uint anObjectHandle,
			DaSession aSession) :
				base(aType, aName, anItemId, anObjectHandle)
		{
			m_itemPath = anItemPath;
			m_session = aSession;
		}