Share via


SmsMessageRegistration.Register(String, SmsFilterRules) Method

Definition

Registers a message filter.

public:
 static SmsMessageRegistration ^ Register(Platform::String ^ id, SmsFilterRules ^ filterRules);
 static SmsMessageRegistration Register(winrt::hstring const& id, SmsFilterRules const& filterRules);
public static SmsMessageRegistration Register(string id, SmsFilterRules filterRules);
function register(id, filterRules)
Public Shared Function Register (id As String, filterRules As SmsFilterRules) As SmsMessageRegistration

Parameters

id
String

Platform::String

winrt::hstring

Identifier used to describe this message filter.

filterRules
SmsFilterRules

An object that represents the filter rules to be used for this registered message filter.

Returns

On successful completion, the SmsMessageRegistration object that represents this registered message filter.

Windows requirements

App capabilities
cellularMessaging sms

Applies to