Share via


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CommonExtensionMethods 类

定义

注意

Not supported for external use

扩展方法帮助程序

[System.Obsolete("Not supported for external use", true)]
public static class CommonExtensionMethods
[<System.Obsolete("Not supported for external use", true)>]
type CommonExtensionMethods = class
Public Module CommonExtensionMethods
继承
CommonExtensionMethods
属性

方法

AppendKeyValuePairIfNotEmpty(StringBuilder, String, Object)
已过时.

将键值对追加到非 null StringBuilder

EnsureEndsWith(String, Char)
已过时.

追加指定的字符(如果尚未追加到该字符)

EnsureStartsWith(String, Char)
已过时.

在指定字符前面添加(如果尚未出现)

GetIotHubName(HttpRequestMessage)
已过时.

从请求消息获取中心名称

GetIotHubNameFromHostName(HttpRequestMessage)
已过时.

从主机名中获取 IoT 中心名称

GetValueOrDefault(IDictionary<String,String>, String)
已过时.

获取指定键的值(如果存在)

IsNullOrWhiteSpace(String)
已过时.

检查该值是 null 还是空。

RemoveWhitespace(String)
已过时.

从字符串中删除空格。

ToDictionary(String, Char, Char)
已过时.

采用键/值对的字符串表示形式并生成字典

TryGetIotHubName(HttpRequestMessage, String)
已过时.

从消息头获取 IoT 中心名称

适用于