本文整理汇总了C#中IEncoder.PopNamespace方法的典型用法代码示例。如果您正苦于以下问题:C# IEncoder.PopNamespace方法的具体用法?C# IEncoder.PopNamespace怎么用?C# IEncoder.PopNamespace使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IEncoder
的用法示例。
在下文中一共展示了IEncoder.PopNamespace方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Encode
public virtual void Encode(IEncoder encoder) {
encoder.PushNamespace("http://opcfoundation.org/UA/2008/02/Types.xsd");
encoder.WriteNodeId("SessionId", SessionId);
encoder.WriteString("SessionName", SessionName);
encoder.WriteEncodable<ApplicationDescription>("ClientDescription", ClientDescription);
encoder.WriteString("ServerUri", ServerUri);
encoder.WriteString("EndpointUrl", EndpointUrl);
encoder.WriteStringArray("LocaleIds", LocaleIds);
encoder.WriteDouble("ActualSessionTimeout", ActualSessionTimeout);
encoder.WriteUInt32("MaxResponseMessageSize", MaxResponseMessageSize);
encoder.WriteDateTime("ClientConnectionTime", ClientConnectionTime);
encoder.WriteDateTime("ClientLastContactTime", ClientLastContactTime);
encoder.WriteUInt32("CurrentSubscriptionsCount", CurrentSubscriptionsCount);
encoder.WriteUInt32("CurrentMonitoredItemsCount", CurrentMonitoredItemsCount);
encoder.WriteUInt32("CurrentPublishRequestsInQueue", CurrentPublishRequestsInQueue);
encoder.WriteEncodable<ServiceCounterDataType>("TotalRequestCount", TotalRequestCount);
encoder.WriteUInt32("UnauthorizedRequestCount", UnauthorizedRequestCount);
encoder.WriteEncodable<ServiceCounterDataType>("ReadCount", ReadCount);
encoder.WriteEncodable<ServiceCounterDataType>("HistoryReadCount", HistoryReadCount);
encoder.WriteEncodable<ServiceCounterDataType>("WriteCount", WriteCount);
encoder.WriteEncodable<ServiceCounterDataType>("HistoryUpdateCount", HistoryUpdateCount);
encoder.WriteEncodable<ServiceCounterDataType>("CallCount", CallCount);
encoder.WriteEncodable<ServiceCounterDataType>("CreateMonitoredItemsCount", CreateMonitoredItemsCount);
encoder.WriteEncodable<ServiceCounterDataType>("ModifyMonitoredItemsCount", ModifyMonitoredItemsCount);
encoder.WriteEncodable<ServiceCounterDataType>("SetMonitoringModeCount", SetMonitoringModeCount);
encoder.WriteEncodable<ServiceCounterDataType>("SetTriggeringCount", SetTriggeringCount);
encoder.WriteEncodable<ServiceCounterDataType>("DeleteMonitoredItemsCount", DeleteMonitoredItemsCount);
encoder.WriteEncodable<ServiceCounterDataType>("CreateSubscriptionCount", CreateSubscriptionCount);
encoder.WriteEncodable<ServiceCounterDataType>("ModifySubscriptionCount", ModifySubscriptionCount);
encoder.WriteEncodable<ServiceCounterDataType>("SetPublishingModeCount", SetPublishingModeCount);
encoder.WriteEncodable<ServiceCounterDataType>("PublishCount", PublishCount);
encoder.WriteEncodable<ServiceCounterDataType>("RepublishCount", RepublishCount);
encoder.WriteEncodable<ServiceCounterDataType>("TransferSubscriptionsCount", TransferSubscriptionsCount);
encoder.WriteEncodable<ServiceCounterDataType>("DeleteSubscriptionsCount", DeleteSubscriptionsCount);
encoder.WriteEncodable<ServiceCounterDataType>("AddNodesCount", AddNodesCount);
encoder.WriteEncodable<ServiceCounterDataType>("AddReferencesCount", AddReferencesCount);
encoder.WriteEncodable<ServiceCounterDataType>("DeleteNodesCount", DeleteNodesCount);
encoder.WriteEncodable<ServiceCounterDataType>("DeleteReferencesCount", DeleteReferencesCount);
encoder.WriteEncodable<ServiceCounterDataType>("BrowseCount", BrowseCount);
encoder.WriteEncodable<ServiceCounterDataType>("BrowseNextCount", BrowseNextCount);
encoder.WriteEncodable<ServiceCounterDataType>("TranslateBrowsePathsToNodeIdsCount", TranslateBrowsePathsToNodeIdsCount);
encoder.WriteEncodable<ServiceCounterDataType>("QueryFirstCount", QueryFirstCount);
encoder.WriteEncodable<ServiceCounterDataType>("QueryNextCount", QueryNextCount);
encoder.WriteEncodable<ServiceCounterDataType>("RegisterNodesCount", RegisterNodesCount);
encoder.WriteEncodable<ServiceCounterDataType>("UnregisterNodesCount", UnregisterNodesCount);
encoder.PopNamespace();
}