Linee guida per la conversione delle API Win32 Mobile Broadband alle API Windows Runtime
Questa tabella elenca le funzionalità di Windows Runtime equivalenti per le API Mobile Broadband Win32 deprecate.
IMbnConnection | Funzionalità di Windows Runtime equivalenti |
---|---|
Connessione | ConnectivityManager.AcquireConnectionAsync |
Disconnetti | ConnectionSession.Close |
get_InterfaceID | MobileBroadbandAccount.NetworkAccountId |
GetActivationNetworkError | MobileBroadbandNetwork.ActivationNetworkError |
GetConnectionState | WwanConnectionProfileDetails.GetNetworkRegistrationState |
GetVoiceCallState | MobileBroadbandNetwork.GetVoiceCallSupport, PhoneCallManager.IsCallActive |
IMbnConnectionEvents | |
OnConnectComplete | NetworkStateChangeEventDetails.HasNewWwanRegistrationState: dopo la notifica, lo stato di registrazione corrente può essere recuperato da WwanConnectionProfileDetails.GetNetworkRegistrationState. |
OnConnectStateChange | NetworkStateChangeEventDetails.HasNewWwanRegistrationState: dopo la notifica, lo stato di registrazione corrente può essere recuperato da WwanConnectionProfileDetails.GetNetworkRegistrationState. |
OnDisconnectComplete | NetworkStateChangeEventDetails.HasNewWwanRegistrationState: dopo la notifica, lo stato di registrazione corrente può essere recuperato da WwanConnectionProfileDetails.GetNetworkRegistrationState. |
OnVoiceCallStateChange | PhoneCallManager.CallStateChanged |
IMbnConnectionProfile | |
Elimina | ConnectionProfile.TryDeleteAsync |
GetConnectionProfile | NetworkAdapter.GetConnectedProfileAsync |
GetConnectionProfiles | NetworkInformation.GetConnectionProfiles |
IMbnDeviceService | |
CloseCommandSession | MobileBroadbandDeviceServiceCommandSession.CloseSession |
CloseDataSession | MobileBroadbandDeviceServiceDataSession.CloseSession |
get_DeviceServiceID | MobileBroadbandDeviceService.DeviceServiceId |
OpenCommandSession | MobileBroadbandDeviceService.OpenCommandSession |
OpenDataSession | MobileBroadbandDeviceService.OpenDataSession |
QueryCommand | MobileBroadbandDeviceServiceCommandSession.SendQueryCommandAsync |
QuerySupportedCommands | MobileBroadbandDeviceService.SupportedCommands |
SetCommand | MobileBroadbandDeviceServiceCommandSession.SendSetCommandAsync |
WriteData | MobileBroadbandDeviceServiceDataSession.WriteDataAsync |
IMbnDeviceServicesContext | |
EnumerateDeviceServices | MobileBroadbandDeviceService.SupportedCommands |
get_MaxCommandSize | MobileBroadbandModem.MaxDeviceServiceCommandSizeInBytes |
get_MaxDataSize | MobileBroadbandModem.MaxDeviceServiceDataSizeInByte |
GetDeviceService | MobileBroadbandModem.GetDeviceService |
IMbnDeviceServicesEvents | |
OnReadData | MobileBroadbandDeviceServiceDataSession.DataReceived |
IMbnInterface | |
get_InterfaceID | MobileBroadbandAccount.NetworkAccountId |
GetConnection | ConnectionSession ottenuta da AcquireConnectionAsync |
GetHomeProvider | MobileBroadbandModem.GetCurrentConfigurationAsync |
GetInterfaceCapability | MobileBroadbandAccount.CurrentDeviceInformation |
GetReadyState | MobileBroadbandDeviceInformation.NetworkDeviceStatus |
GetSubscriberInformation | MobileBroadbandAccount.CurrentDeviceInformation |
InEmergencyMode | MobileBroadbandModem.IsInEmergencyCallMode |
IMbnInterfaceEvents | |
OnEmergencyModeChange | MobileBroadbandModem.IsInEmergencyCallModeChanged |
OnReadyStateChange | MobileBroadbandNetworkRegistrationStateChange |
OnSubscriberInformationChange | MobileBroadbandAccountUpdatedEventArgs.HasDeviceInformationChanged |
IMbnInterfaceManager | |
GetInterface | MobileBroadbandModem.CurrentAccount |
IMbnInterfaceManagerEvents | |
OnInterfaceArrival | MobileBroadbandAccountWatcher.AccountAdded |
OnInterfaceRemoval | MobileBroadbandAccountWatcher.Account |
IMbnMultiCarrier | |
GetCurrentCellularClass | MobileBroadbandDeviceInformation.CellularClass |
IMbnMultiCarrierEvents | |
OnCurrentCellularClassChange | MobileBroadbandAccountUpdatedEventArgs.HasDeviceInformationChanged |
IMbnPin | |
Modifica | MobileBroadbandPin.ChangeAsync |
Disabilita | MobileBroadbandPin.DisableAsync |
Abilita | MobileBroadbandPin.EnableAsync |
Immettere | MobileBroadbandPin.EnterAsync |
get_PinFormat | MobileBroadbandPin.Format |
get_PinLengthMax | MobileBroadbandPin.MaxLength |
get_PinLengthMin | MobileBroadbandPin.MaxLength |
get_PinMode | MobileBroadbandPin.Enabled |
get_PinType | MobileBroadbandPin.Type |
GetPinManager | MobileBroadbandDeviceInformation.PinManager |
Sbloccare | MobileBroadbandPin.UnblockAsync |
IMbnPinManager | |
GetPin | MobileBroadbandPinManager.GetPin |
GetPinList | MobileBroadbandPinManager.SupportedPins |
GetPinState | MobileBroadbandPin.LockState |
IMbnPinManagerEvents | |
IMbnRadio | |
get_SoftwareRadioState | Radio.GetRadiosAsync - Radio. State |
SetSoftwareRadioState | Radio.SetStateAsync |
IMbnRadioEvents | |
OnRadioStateChange | Radio.StateChanged |
IMbnRegistration | |
GetAvailableDataClasses | MobileBroadbandDeviceInformation.DataClasses |
GetCurrentDataClass | MobileBroadbandNetwork.RegisteredDataClass |
GetPacketAttachNetworkError | MobileBroadbandNetwork.PacketAttachNetworkError |
GetProviderID | MobileBroadbandNetwork.RegisteredProviderId |
GetProviderName | MobileBroadbandNetwork.RegisteredProviderName |
GetRegisterState | MobileBroadbandNetwork.NetworkRegistrationState |
GetRegistrationNetworkError | MobileBroadbandNetwork.ActivationNetworkError |
IMbnRegistrationEvents | |
OnPacketServiceStateChange | MobileBroadbandNetworkRegistrationStateChange |
OnRegisterStateChange | MobileBroadbandNetworkRegistrationStateChange |
GetSignalStrength | ConnectionProfile.GetSignalBar/ MobileBroadbandCellLte.ReferenceSignalReceivedPowerInDBm / MobileBroadbandCellGsm.ReceivedSignalStrengthInDBm |
IMbnSignalEvents | |
IMbnSms | |
GetSmsConfiguration | SmsDevice2.SmscAddress, SmsDevice2.CellularClass, Nessuno per CDMAShortMessageSize e MaxMessageIndex non obbligatorio come API pubblica. |
SetSmsConfiguration | SmsDevice2.SmscAddress, nessuno degli altri parametri è supportato |
SmsSendCdma | SendMessageAndGetResultAsync usando CellularClass in ISmsMessageBase |
SmsSendCdmaPdu | SendMessageAndGetResultAsync usando Messagetype e CellularClass in ISmsMessageBase |
SmsSendPdu | SendMessageAndGetResultAsync usando MessageType in ISmsMessageBase |
IMbnSmsConfiguration | |
get_ServiceCenterAddress | SmsDevice2.SmscAddress |
get_SmsFormat | SmsDevice2.CellularClass |
put_ServiceCenterAddress | SmsDevice2.SmscAddress |
IMbnSmsEvents | |
OnSmsNewClass0Message | SmsMessageRegistration.MessageReceived |
OnSmsSendComplete | SmsSendMessageResult |
IMbnSmsReadMsgPdu | |
get_Message | SmsTextMessage2.Body |
get_PduData | SmsTextmessage2.Body |
IMbnSmsReadMsgTextCdma | |
get_Address | SmsTextMessage2.From |
get_EncodingID | SmsTextMessage2.Encoding |
get_Message | SmsTextMessage2.Body |
get_Timestamp | SmsTextMessage.2Timestamp |
IMbnSubscriberInformation | |
get_SimIccID | MobileBroadbandDeviceInformation.SimIccId |
get_SubscriberID | MobileBroadbandDeviceInformation.SubscriberId |
get_TelephoneNumbers | MobileBroadbandDeviceInformation.TelephoneNumbers |