SmsMessageRegistration.Register(String, SmsFilterRules) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
|