protected FindChild ( ISystemContext context, Opc.Ua.QualifiedName browseName, bool createOrReplace, |
||
context | ISystemContext | |
browseName | Opc.Ua.QualifiedName | |
createOrReplace | bool | |
replacement | ||
리턴 |
protected override BaseInstanceState FindChild(
ISystemContext context,
QualifiedName browseName,
bool createOrReplace,
BaseInstanceState replacement)
{
if (QualifiedName.IsNull(browseName))
{
return null;
}
BaseInstanceState instance = null;
switch (browseName.Name)
{
case Opc.Ua.Di.BrowseNames.NetworkAddress:
{
if (createOrReplace)
{
if (NetworkAddress == null)
{
if (replacement == null)
{
NetworkAddress = new FunctionalGroupState(this);
}
else
{
NetworkAddress = (FunctionalGroupState)replacement;
}
}
}
instance = NetworkAddress;
break;
}
}
if (instance != null)
{
return instance;
}
return base.FindChild(context, browseName, createOrReplace, replacement);
}