当前位置: 首页>>代码示例>>C#>>正文


C# IEncoder.PushNamespace方法代码示例

本文整理汇总了C#中IEncoder.PushNamespace方法的典型用法代码示例。如果您正苦于以下问题:C# IEncoder.PushNamespace方法的具体用法?C# IEncoder.PushNamespace怎么用?C# IEncoder.PushNamespace使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IEncoder的用法示例。


在下文中一共展示了IEncoder.PushNamespace方法的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();
        }
开发者ID:yuriik83,项目名称:workstation-uaclient,代码行数:47,代码来源:Types.generated.cs


注:本文中的IEncoder.PushNamespace方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。