IUAObject.UAEvent

IUAObject.UAEvent

이 이벤트는
IUAObject
C# 개체가 참조하는 프로젝트 개체가 OPC UA 이벤트를 생성할 때 발생합니다.
event EventHandler<UAEventArgs> UAEvent;

이벤트 처리기

public delegate void UAEvent(object sender, UAEventArgs e);

이벤트 처리기 인수

sender
(object)
이벤트의 프로젝트 원본 개체에 해당하는 C# 개체입니다.
e
(UAEventArgs)
다음 속성을 포함하는 C# 개체입니다.
EventType
(IUAObjectType)
생성된 이벤트 유형의 노드입니다.
Arguments
(UAEventArgumentList)
생성된 이벤트의 인수를 포함하는 C# 개체입니다.

예제

Button1_UAEvent
메서드는
Button1
프로젝트 버튼이 이벤트(예:
OnMouseClick
,
OnMouseDown
또는
OnMouseUp
)를 생성할 때마다 실행됩니다.
public override void Start() { var button1 = Owner.Get<Button>("Button1"); button1.UAEvent += Button1_UAEvent; } private void Button1_UAEvent(object sender, UAEventArgs e) { var label1 = Owner.Get<Label>("Label1"); var button1 = (Button)sender; label1.Text = "Event on " + button1.BrowseName + " of type " + e.EventType.BrowseName + " , "; }
의견을 작성 부탁드립니다.
이 자료에 대한 문의사항이나 요청사항이 있습니까? 여기에 요청사항을 작성 부탁드립니다.
Normal