NotificationRegistrationsController.CreateWindowsRegistrationDescription Method
Namespace: Microsoft.WindowsAzure.Mobile.Service.Controllers
Assembly: Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)
Syntax
'Declaration
<SuppressMessageAttribute("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Justification := "HTTP response is disposed by caller.")> _
<SuppressMessageAttribute("Microsoft.Usage", "CA2234:PassSystemUriObjectsInsteadOfStrings", Justification := "Not needed here.")> _
Protected Overridable Function CreateWindowsRegistrationDescription ( _
id As String, _
registration As NotificationRegistration _
) As RegistrationDescription
'Usage
Dim id As String
Dim registration As NotificationRegistration
Dim returnValue As RegistrationDescription
returnValue = Me.CreateWindowsRegistrationDescription(id, _
registration)
[SuppressMessageAttribute("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Justification = "HTTP response is disposed by caller.")]
[SuppressMessageAttribute("Microsoft.Usage", "CA2234:PassSystemUriObjectsInsteadOfStrings", Justification = "Not needed here.")]
protected virtual RegistrationDescription CreateWindowsRegistrationDescription(
string id,
NotificationRegistration registration
)
[SuppressMessageAttribute(L"Microsoft.Reliability", L"CA2000:Dispose objects before losing scope", Justification = L"HTTP response is disposed by caller.")]
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA2234:PassSystemUriObjectsInsteadOfStrings", Justification = L"Not needed here.")]
protected:
virtual RegistrationDescription^ CreateWindowsRegistrationDescription(
String^ id,
NotificationRegistration^ registration
)
[<SuppressMessageAttribute("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Justification = "HTTP response is disposed by caller.")>]
[<SuppressMessageAttribute("Microsoft.Usage", "CA2234:PassSystemUriObjectsInsteadOfStrings", Justification = "Not needed here.")>]
abstract CreateWindowsRegistrationDescription :
id:string *
registration:NotificationRegistration -> RegistrationDescription
[<SuppressMessageAttribute("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Justification = "HTTP response is disposed by caller.")>]
[<SuppressMessageAttribute("Microsoft.Usage", "CA2234:PassSystemUriObjectsInsteadOfStrings", Justification = "Not needed here.")>]
override CreateWindowsRegistrationDescription :
id:string *
registration:NotificationRegistration -> RegistrationDescription
protected function CreateWindowsRegistrationDescription(
id : String,
registration : NotificationRegistration
) : RegistrationDescription
Parameters
- id
Type: System.String
- registration
Type: Microsoft.WindowsAzure.Mobile.Service.Notifications.NotificationRegistration
Return Value
Type: Microsoft.ServiceBus.Notifications.RegistrationDescription