SmsFilterRule 类

定义

描述短信筛选规则。

注意

此功能仅适用于由移动网络运营商、移动宽带适配器 IHV 或 OEM 授予特权访问权限的移动运营商应用和 UWP 应用。 有关详细信息,请参阅 移动宽带

public ref class SmsFilterRule sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.Sms.ISmsFilterRuleFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SmsFilterRule final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.Sms.ISmsFilterRuleFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class SmsFilterRule final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.Sms.ISmsFilterRuleFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SmsFilterRule
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.Sms.ISmsFilterRuleFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class SmsFilterRule
function SmsFilterRule(messageType)
Public NotInheritable Class SmsFilterRule
继承
Object Platform::Object IInspectable SmsFilterRule
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
应用功能
cellularMessaging sms

构造函数

SmsFilterRule(SmsMessageType)

创建新的空 SmsFilterRule

属性

BroadcastChannels

与此规则匹配的广播频道列表。

BroadcastTypes

获取与此规则匹配的短信的广播类型列表。

CellularClass

与此规则匹配的短信的手机网络类标识符。

DeviceIds

获取与此规则匹配的短信的设备标识符列表。

ImsiPrefixes

获取与此规则匹配的短信的 IMSI 前缀。

MessageType

获取与此筛选规则匹配的短信的消息类型。

PortNumbers

获取与此规则匹配的短信关联的端口号列表。

ProtocolIds

获取与此规则匹配的短信关联的协议标识符列表。

SenderNumbers

获取与此规则匹配的短信关联的发件人编号。

TeleserviceIds

获取与此规则匹配的短信的远程服务标识符列表。

TextMessagePrefixes

获取与此筛选器匹配的短信的短信前缀列表。

WapApplicationIds

获取与此规则匹配的短信的 WAP 应用程序标识符列表。

WapContentTypes

获取与此规则匹配的短信的 WAP 内容类型列表。

适用于