Sdílet prostřednictvím


SmsFilterRule Class

Definition

Describes an SMS filtering rule.

Note

This functionality is available only to mobile operator apps and UWP apps given privileged access by mobile network operators, mobile broadband adapter IHV, or OEM. For more information, see Mobile Broadband.

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
Inheritance
Object Platform::Object IInspectable SmsFilterRule
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
cellularMessaging sms

Constructors

SmsFilterRule(SmsMessageType)

Creates a new, empty SmsFilterRule.

Properties

BroadcastChannels

A list of broadcast channels that match this rule.

BroadcastTypes

Gets a list of broadcast types for an SMS message that matches this rule.

CellularClass

The cellular class identifier for SMS messages that match this rule.

DeviceIds

Gets a list of device identifiers for an SMS message that matches this rule.

ImsiPrefixes

Gets the IMSI prefixes for an SMS message that matches this rule.

MessageType

Gets the message type of an SMS message that matches this filter rule.

PortNumbers

Gets a list of port numbers associated with the SMS message that matches this rule.

ProtocolIds

Gets a list of protocol identifiers associated with the SMS message that matches this rule..

SenderNumbers

Gets the sender numbers associated with an SMS message that matches this rule.

TeleserviceIds

Gets the list of teleservice identifiers for an SMS message that matches this rule.

TextMessagePrefixes

Gets a list of the text message prefixes for an SMS message that matches this filter.

WapApplicationIds

Gets a list of WAP application identifiers for the SMS message that matches this rule.

WapContentTypes

Gets a list of WAP content types for the SMS message that matches this rule.

Applies to