SmsMessageRegistration Class
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.
Class used to represent registered message filters.
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 SmsMessageRegistration sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SmsMessageRegistration final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SmsMessageRegistration
Public NotInheritable Class SmsMessageRegistration
- Inheritance
- 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
|
Remarks
Your code does not instantiate this class directly. A newly-created instance of the class is returned by the SmsMessageRegistration.Register method, and you can retrieve a collection of instances representing existing registrations using the static SmsMessageRegistration.AllRegistrations property.
Properties
AllRegistrations |
Static property that gets a list of currently registered message filters.. |
Id |
Gets an identifier for this registered message filter. |
Methods
Register(String, SmsFilterRules) |
Registers a message filter. |
Unregister() |
Unregisters a previously-registered message filter. The filter will no longer be applied to incoming messages. |
Events
MessageReceived |
Event signaled when a message has been received that meets the filter criteria set in a registered message filter. |