Service.WaitForParentConnection Property

<< 点击显示目录 >>

主页  PVI通信 > PVI帮助信息 > PVI Services > BR.AN.Namespace > BR.AN.PviServices > Service Class > Service Properties >

Service.WaitForParentConnection Property

BR.AN.PviServices .NET


Gets or sets the WaitForParentConnection property.

[Visual Basic]

Public Property WaitForParentConnection() As Boolean

  Public Get

  End Get

  Public Set

  End Set

End Property

[C#]

public bool WaitForParentConnection { public get; public set; }

Remarks

The property specifies whether an PviServices object wait for its parent connection.

Example

// Calling the Connect Method of a variable object before its parent (cpu object) is connected.
Cpu cpuObj = new Cpu(serviceObj,"Cpu1);
Variable var = new Variable(cpuObj,"var1");
// 1. Connect variable
var.Connect();
..
..
// 2. Connect cpu
cpuObj.Connect();
// If this property is set true (default case) the variable object
// waits for its parent (cpu object) connection. So the Connected event
// of the cpu object causes to connect the waiting variable object.

See Also

Service Class | BR.AN.PviServices Namespace


Generated from assembly BR.AN.PviServices [8.1.0.4]