你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
TimeZone 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
TimeZone() |
初始化 TimeZone 类的新实例。 |
TimeZone(TimeZoneTimeZoneInformation, String, String, IList<Query>, QueryContext, Nullable<Int64>, Nullable<Boolean>, IList<TimeZoneTimeZoneInformation>) |
初始化 TimeZone 类的新实例。 |
TimeZone()
初始化 TimeZone 类的新实例。
public TimeZone ();
Public Sub New ()
适用于
TimeZone(TimeZoneTimeZoneInformation, String, String, IList<Query>, QueryContext, Nullable<Int64>, Nullable<Boolean>, IList<TimeZoneTimeZoneInformation>)
初始化 TimeZone 类的新实例。
public TimeZone (Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.TimeZoneTimeZoneInformation primaryCityTime, string id = default, string webSearchUrl = default, System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.Query> followUpQueries = default, Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.QueryContext queryContext = default, long? totalEstimatedMatches = default, bool? isFamilyFriendly = default, System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.TimeZoneTimeZoneInformation> otherCityTimes = default);
new Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.TimeZone : Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.TimeZoneTimeZoneInformation * string * string * System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.Query> * Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.QueryContext * Nullable<int64> * Nullable<bool> * System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.TimeZoneTimeZoneInformation> -> Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.TimeZone
Public Sub New (primaryCityTime As TimeZoneTimeZoneInformation, Optional id As String = Nothing, Optional webSearchUrl As String = Nothing, Optional followUpQueries As IList(Of Query) = Nothing, Optional queryContext As QueryContext = Nothing, Optional totalEstimatedMatches As Nullable(Of Long) = Nothing, Optional isFamilyFriendly As Nullable(Of Boolean) = Nothing, Optional otherCityTimes As IList(Of TimeZoneTimeZoneInformation) = Nothing)
参数
- primaryCityTime
- TimeZoneTimeZoneInformation
查询中指定的地理位置的数据和时间(UTC)。 如果查询指定了特定地理位置 (例如城市) ,则此对象包含地理位置的名称以及该位置的当前日期和时间(UTC)。 如果查询指定了常规地理位置(如州或国家/地区),则此对象包含指定州或国家/地区中找到的主要城市或州/地区的日期和时间。 如果位置包含其他时区,则 otherCityTimes 字段包含位于其他时区的城市或州的数据和时间。
- id
- String
字符串标识符。
- webSearchUrl
- String
必应对此项目的搜索结果的 URL。
- queryContext
- QueryContext
- otherCityTimes
- IList<TimeZoneTimeZoneInformation>
附近时区的日期和时间列表。