'------------------------------------------------------------------------------
' <auto-generated>
'     Este código fue generado por una herramienta.
'     Versión de runtime:4.0.30319.544
'
'     Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
'     se vuelve a generar el código.
' </auto-generated>
'------------------------------------------------------------------------------

Option Strict On
Option Explicit On

Imports System.Runtime.Serialization

'
'This code was auto-generated by Microsoft.Silverlight.ServiceReference, version 5.0.61118.0
'
Namespace RefProfileSvc
    
    <System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0"),  _
     System.Runtime.Serialization.DataContractAttribute(Name:="ProfilePropertyMetadata", [Namespace]:="http://schemas.datacontract.org/2004/07/System.Web.ApplicationServices")>  _
    Partial Public Class ProfilePropertyMetadata
        Inherits Object
        Implements System.ComponentModel.INotifyPropertyChanged
        
        Private AllowAnonymousAccessField As Boolean
        
        Private DefaultValueField As String
        
        Private IsReadOnlyField As Boolean
        
        Private PropertyNameField As String
        
        Private SerializeAsField As Integer
        
        Private TypeNameField As String
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property AllowAnonymousAccess() As Boolean
            Get
                Return Me.AllowAnonymousAccessField
            End Get
            Set
                If (Me.AllowAnonymousAccessField.Equals(value) <> true) Then
                    Me.AllowAnonymousAccessField = value
                    Me.RaisePropertyChanged("AllowAnonymousAccess")
                End If
            End Set
        End Property
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property DefaultValue() As String
            Get
                Return Me.DefaultValueField
            End Get
            Set
                If (Object.ReferenceEquals(Me.DefaultValueField, value) <> true) Then
                    Me.DefaultValueField = value
                    Me.RaisePropertyChanged("DefaultValue")
                End If
            End Set
        End Property
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property IsReadOnly() As Boolean
            Get
                Return Me.IsReadOnlyField
            End Get
            Set
                If (Me.IsReadOnlyField.Equals(value) <> true) Then
                    Me.IsReadOnlyField = value
                    Me.RaisePropertyChanged("IsReadOnly")
                End If
            End Set
        End Property
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property PropertyName() As String
            Get
                Return Me.PropertyNameField
            End Get
            Set
                If (Object.ReferenceEquals(Me.PropertyNameField, value) <> true) Then
                    Me.PropertyNameField = value
                    Me.RaisePropertyChanged("PropertyName")
                End If
            End Set
        End Property
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property SerializeAs() As Integer
            Get
                Return Me.SerializeAsField
            End Get
            Set
                If (Me.SerializeAsField.Equals(value) <> true) Then
                    Me.SerializeAsField = value
                    Me.RaisePropertyChanged("SerializeAs")
                End If
            End Set
        End Property
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property TypeName() As String
            Get
                Return Me.TypeNameField
            End Get
            Set
                If (Object.ReferenceEquals(Me.TypeNameField, value) <> true) Then
                    Me.TypeNameField = value
                    Me.RaisePropertyChanged("TypeName")
                End If
            End Set
        End Property
        
        Public Event PropertyChanged As System.ComponentModel.PropertyChangedEventHandler Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged
        
        Protected Sub RaisePropertyChanged(ByVal propertyName As String)
            Dim propertyChanged As System.ComponentModel.PropertyChangedEventHandler = Me.PropertyChangedEvent
            If (Not (propertyChanged) Is Nothing) Then
                propertyChanged(Me, New System.ComponentModel.PropertyChangedEventArgs(propertyName))
            End If
        End Sub
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0"),  _
     System.ServiceModel.ServiceContractAttribute([Namespace]:="http://asp.net/ApplicationServices/v200", ConfigurationName:="RefProfileSvc.ProfileService")>  _
    Public Interface ProfileService
        
        <System.ServiceModel.OperationContractAttribute(AsyncPattern:=true, Action:="http://asp.net/ApplicationServices/v200/ProfileService/GetPropertiesForCurrentUse"& _ 
            "r", ReplyAction:="http://asp.net/ApplicationServices/v200/ProfileService/GetPropertiesForCurrentUse"& _ 
            "rResponse")>  _
        Function BeginGetPropertiesForCurrentUser(ByVal properties As System.Collections.ObjectModel.ObservableCollection(Of String), ByVal authenticatedUserOnly As Boolean, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
        
        Function EndGetPropertiesForCurrentUser(ByVal result As System.IAsyncResult) As System.Collections.Generic.Dictionary(Of String, Object)
        
        <System.ServiceModel.OperationContractAttribute(AsyncPattern:=true, Action:="http://asp.net/ApplicationServices/v200/ProfileService/GetAllPropertiesForCurrent"& _ 
            "User", ReplyAction:="http://asp.net/ApplicationServices/v200/ProfileService/GetAllPropertiesForCurrent"& _ 
            "UserResponse")>  _
        Function BeginGetAllPropertiesForCurrentUser(ByVal authenticatedUserOnly As Boolean, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
        
        Function EndGetAllPropertiesForCurrentUser(ByVal result As System.IAsyncResult) As System.Collections.Generic.Dictionary(Of String, Object)
        
        <System.ServiceModel.OperationContractAttribute(AsyncPattern:=true, Action:="http://asp.net/ApplicationServices/v200/ProfileService/SetPropertiesForCurrentUse"& _ 
            "r", ReplyAction:="http://asp.net/ApplicationServices/v200/ProfileService/SetPropertiesForCurrentUse"& _ 
            "rResponse")>  _
        Function BeginSetPropertiesForCurrentUser(ByVal values As System.Collections.Generic.Dictionary(Of String, Object), ByVal authenticatedUserOnly As Boolean, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
        
        Function EndSetPropertiesForCurrentUser(ByVal result As System.IAsyncResult) As System.Collections.ObjectModel.ObservableCollection(Of String)
        
        <System.ServiceModel.OperationContractAttribute(AsyncPattern:=true, Action:="http://asp.net/ApplicationServices/v200/ProfileService/GetPropertiesMetadata", ReplyAction:="http://asp.net/ApplicationServices/v200/ProfileService/GetPropertiesMetadataRespo"& _ 
            "nse")>  _
        Function BeginGetPropertiesMetadata(ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
        
        Function EndGetPropertiesMetadata(ByVal result As System.IAsyncResult) As System.Collections.ObjectModel.ObservableCollection(Of RefProfileSvc.ProfilePropertyMetadata)
    End Interface
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")>  _
    Public Interface ProfileServiceChannel
        Inherits RefProfileSvc.ProfileService, System.ServiceModel.IClientChannel
    End Interface
    
    <System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")>  _
    Partial Public Class GetPropertiesForCurrentUserCompletedEventArgs
        Inherits System.ComponentModel.AsyncCompletedEventArgs
        
        Private results() As Object
        
        Public Sub New(ByVal results() As Object, ByVal exception As System.Exception, ByVal cancelled As Boolean, ByVal userState As Object)
            MyBase.New(exception, cancelled, userState)
            Me.results = results
        End Sub
        
        Public ReadOnly Property Result() As System.Collections.Generic.Dictionary(Of String, Object)
            Get
                MyBase.RaiseExceptionIfNecessary
                Return CType(Me.results(0),System.Collections.Generic.Dictionary(Of String, Object))
            End Get
        End Property
    End Class
    
    <System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")>  _
    Partial Public Class GetAllPropertiesForCurrentUserCompletedEventArgs
        Inherits System.ComponentModel.AsyncCompletedEventArgs
        
        Private results() As Object
        
        Public Sub New(ByVal results() As Object, ByVal exception As System.Exception, ByVal cancelled As Boolean, ByVal userState As Object)
            MyBase.New(exception, cancelled, userState)
            Me.results = results
        End Sub
        
        Public ReadOnly Property Result() As System.Collections.Generic.Dictionary(Of String, Object)
            Get
                MyBase.RaiseExceptionIfNecessary
                Return CType(Me.results(0),System.Collections.Generic.Dictionary(Of String, Object))
            End Get
        End Property
    End Class
    
    <System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")>  _
    Partial Public Class SetPropertiesForCurrentUserCompletedEventArgs
        Inherits System.ComponentModel.AsyncCompletedEventArgs
        
        Private results() As Object
        
        Public Sub New(ByVal results() As Object, ByVal exception As System.Exception, ByVal cancelled As Boolean, ByVal userState As Object)
            MyBase.New(exception, cancelled, userState)
            Me.results = results
        End Sub
        
        Public ReadOnly Property Result() As System.Collections.ObjectModel.ObservableCollection(Of String)
            Get
                MyBase.RaiseExceptionIfNecessary
                Return CType(Me.results(0),System.Collections.ObjectModel.ObservableCollection(Of String))
            End Get
        End Property
    End Class
    
    <System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")>  _
    Partial Public Class GetPropertiesMetadataCompletedEventArgs
        Inherits System.ComponentModel.AsyncCompletedEventArgs
        
        Private results() As Object
        
        Public Sub New(ByVal results() As Object, ByVal exception As System.Exception, ByVal cancelled As Boolean, ByVal userState As Object)
            MyBase.New(exception, cancelled, userState)
            Me.results = results
        End Sub
        
        Public ReadOnly Property Result() As System.Collections.ObjectModel.ObservableCollection(Of RefProfileSvc.ProfilePropertyMetadata)
            Get
                MyBase.RaiseExceptionIfNecessary
                Return CType(Me.results(0),System.Collections.ObjectModel.ObservableCollection(Of RefProfileSvc.ProfilePropertyMetadata))
            End Get
        End Property
    End Class
    
    <System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")>  _
    Partial Public Class ProfileServiceClient
        Inherits System.ServiceModel.ClientBase(Of RefProfileSvc.ProfileService)
        Implements RefProfileSvc.ProfileService
        
        Private onBeginGetPropertiesForCurrentUserDelegate As BeginOperationDelegate
        
        Private onEndGetPropertiesForCurrentUserDelegate As EndOperationDelegate
        
        Private onGetPropertiesForCurrentUserCompletedDelegate As System.Threading.SendOrPostCallback
        
        Private onBeginGetAllPropertiesForCurrentUserDelegate As BeginOperationDelegate
        
        Private onEndGetAllPropertiesForCurrentUserDelegate As EndOperationDelegate
        
        Private onGetAllPropertiesForCurrentUserCompletedDelegate As System.Threading.SendOrPostCallback
        
        Private onBeginSetPropertiesForCurrentUserDelegate As BeginOperationDelegate
        
        Private onEndSetPropertiesForCurrentUserDelegate As EndOperationDelegate
        
        Private onSetPropertiesForCurrentUserCompletedDelegate As System.Threading.SendOrPostCallback
        
        Private onBeginGetPropertiesMetadataDelegate As BeginOperationDelegate
        
        Private onEndGetPropertiesMetadataDelegate As EndOperationDelegate
        
        Private onGetPropertiesMetadataCompletedDelegate As System.Threading.SendOrPostCallback
        
        Private onBeginOpenDelegate As BeginOperationDelegate
        
        Private onEndOpenDelegate As EndOperationDelegate
        
        Private onOpenCompletedDelegate As System.Threading.SendOrPostCallback
        
        Private onBeginCloseDelegate As BeginOperationDelegate
        
        Private onEndCloseDelegate As EndOperationDelegate
        
        Private onCloseCompletedDelegate As System.Threading.SendOrPostCallback
        
        Public Sub New()
            MyBase.New
        End Sub
        
        Public Sub New(ByVal endpointConfigurationName As String)
            MyBase.New(endpointConfigurationName)
        End Sub
        
        Public Sub New(ByVal endpointConfigurationName As String, ByVal remoteAddress As String)
            MyBase.New(endpointConfigurationName, remoteAddress)
        End Sub
        
        Public Sub New(ByVal endpointConfigurationName As String, ByVal remoteAddress As System.ServiceModel.EndpointAddress)
            MyBase.New(endpointConfigurationName, remoteAddress)
        End Sub
        
        Public Sub New(ByVal binding As System.ServiceModel.Channels.Binding, ByVal remoteAddress As System.ServiceModel.EndpointAddress)
            MyBase.New(binding, remoteAddress)
        End Sub
        
        Public Property CookieContainer() As System.Net.CookieContainer
            Get
                Dim httpCookieContainerManager As System.ServiceModel.Channels.IHttpCookieContainerManager = Me.InnerChannel.GetProperty(Of System.ServiceModel.Channels.IHttpCookieContainerManager)
                If (Not (httpCookieContainerManager) Is Nothing) Then
                    Return httpCookieContainerManager.CookieContainer
                Else
                    Return Nothing
                End If
            End Get
            Set
                Dim httpCookieContainerManager As System.ServiceModel.Channels.IHttpCookieContainerManager = Me.InnerChannel.GetProperty(Of System.ServiceModel.Channels.IHttpCookieContainerManager)
                If (Not (httpCookieContainerManager) Is Nothing) Then
                    httpCookieContainerManager.CookieContainer = value
                Else
                    Throw New System.InvalidOperationException("No se puede establecer el objeto CookieContainer. Asegúrese de que el enlace cont"& _ 
                            "iene un objeto HttpCookieContainerBindingElement.")
                End If
            End Set
        End Property
        
        Public Event GetPropertiesForCurrentUserCompleted As System.EventHandler(Of GetPropertiesForCurrentUserCompletedEventArgs)
        
        Public Event GetAllPropertiesForCurrentUserCompleted As System.EventHandler(Of GetAllPropertiesForCurrentUserCompletedEventArgs)
        
        Public Event SetPropertiesForCurrentUserCompleted As System.EventHandler(Of SetPropertiesForCurrentUserCompletedEventArgs)
        
        Public Event GetPropertiesMetadataCompleted As System.EventHandler(Of GetPropertiesMetadataCompletedEventArgs)
        
        Public Event OpenCompleted As System.EventHandler(Of System.ComponentModel.AsyncCompletedEventArgs)
        
        Public Event CloseCompleted As System.EventHandler(Of System.ComponentModel.AsyncCompletedEventArgs)
        
        <System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)>  _
        Function RefProfileSvc_ProfileService_BeginGetPropertiesForCurrentUser(ByVal properties As System.Collections.ObjectModel.ObservableCollection(Of String), ByVal authenticatedUserOnly As Boolean, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Implements RefProfileSvc.ProfileService.BeginGetPropertiesForCurrentUser
            Return MyBase.Channel.BeginGetPropertiesForCurrentUser(properties, authenticatedUserOnly, callback, asyncState)
        End Function
        
        <System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)>  _
        Function RefProfileSvc_ProfileService_EndGetPropertiesForCurrentUser(ByVal result As System.IAsyncResult) As System.Collections.Generic.Dictionary(Of String, Object) Implements RefProfileSvc.ProfileService.EndGetPropertiesForCurrentUser
            Return MyBase.Channel.EndGetPropertiesForCurrentUser(result)
        End Function
        
        Private Function OnBeginGetPropertiesForCurrentUser(ByVal inValues() As Object, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Dim properties As System.Collections.ObjectModel.ObservableCollection(Of String) = CType(inValues(0),System.Collections.ObjectModel.ObservableCollection(Of String))
            Dim authenticatedUserOnly As Boolean = CType(inValues(1),Boolean)
            Return CType(Me,RefProfileSvc.ProfileService).BeginGetPropertiesForCurrentUser(properties, authenticatedUserOnly, callback, asyncState)
        End Function
        
        Private Function OnEndGetPropertiesForCurrentUser(ByVal result As System.IAsyncResult) As Object()
            Dim retVal As System.Collections.Generic.Dictionary(Of String, Object) = CType(Me,RefProfileSvc.ProfileService).EndGetPropertiesForCurrentUser(result)
            Return New Object() {retVal}
        End Function
        
        Private Sub OnGetPropertiesForCurrentUserCompleted(ByVal state As Object)
            If (Not (Me.GetPropertiesForCurrentUserCompletedEvent) Is Nothing) Then
                Dim e As InvokeAsyncCompletedEventArgs = CType(state,InvokeAsyncCompletedEventArgs)
                RaiseEvent GetPropertiesForCurrentUserCompleted(Me, New GetPropertiesForCurrentUserCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState))
            End If
        End Sub
        
        Public Overloads Sub GetPropertiesForCurrentUserAsync(ByVal properties As System.Collections.ObjectModel.ObservableCollection(Of String), ByVal authenticatedUserOnly As Boolean)
            Me.GetPropertiesForCurrentUserAsync(properties, authenticatedUserOnly, Nothing)
        End Sub
        
        Public Overloads Sub GetPropertiesForCurrentUserAsync(ByVal properties As System.Collections.ObjectModel.ObservableCollection(Of String), ByVal authenticatedUserOnly As Boolean, ByVal userState As Object)
            If (Me.onBeginGetPropertiesForCurrentUserDelegate Is Nothing) Then
                Me.onBeginGetPropertiesForCurrentUserDelegate = AddressOf Me.OnBeginGetPropertiesForCurrentUser
            End If
            If (Me.onEndGetPropertiesForCurrentUserDelegate Is Nothing) Then
                Me.onEndGetPropertiesForCurrentUserDelegate = AddressOf Me.OnEndGetPropertiesForCurrentUser
            End If
            If (Me.onGetPropertiesForCurrentUserCompletedDelegate Is Nothing) Then
                Me.onGetPropertiesForCurrentUserCompletedDelegate = AddressOf Me.OnGetPropertiesForCurrentUserCompleted
            End If
            MyBase.InvokeAsync(Me.onBeginGetPropertiesForCurrentUserDelegate, New Object() {properties, authenticatedUserOnly}, Me.onEndGetPropertiesForCurrentUserDelegate, Me.onGetPropertiesForCurrentUserCompletedDelegate, userState)
        End Sub
        
        <System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)>  _
        Function RefProfileSvc_ProfileService_BeginGetAllPropertiesForCurrentUser(ByVal authenticatedUserOnly As Boolean, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Implements RefProfileSvc.ProfileService.BeginGetAllPropertiesForCurrentUser
            Return MyBase.Channel.BeginGetAllPropertiesForCurrentUser(authenticatedUserOnly, callback, asyncState)
        End Function
        
        <System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)>  _
        Function RefProfileSvc_ProfileService_EndGetAllPropertiesForCurrentUser(ByVal result As System.IAsyncResult) As System.Collections.Generic.Dictionary(Of String, Object) Implements RefProfileSvc.ProfileService.EndGetAllPropertiesForCurrentUser
            Return MyBase.Channel.EndGetAllPropertiesForCurrentUser(result)
        End Function
        
        Private Function OnBeginGetAllPropertiesForCurrentUser(ByVal inValues() As Object, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Dim authenticatedUserOnly As Boolean = CType(inValues(0),Boolean)
            Return CType(Me,RefProfileSvc.ProfileService).BeginGetAllPropertiesForCurrentUser(authenticatedUserOnly, callback, asyncState)
        End Function
        
        Private Function OnEndGetAllPropertiesForCurrentUser(ByVal result As System.IAsyncResult) As Object()
            Dim retVal As System.Collections.Generic.Dictionary(Of String, Object) = CType(Me,RefProfileSvc.ProfileService).EndGetAllPropertiesForCurrentUser(result)
            Return New Object() {retVal}
        End Function
        
        Private Sub OnGetAllPropertiesForCurrentUserCompleted(ByVal state As Object)
            If (Not (Me.GetAllPropertiesForCurrentUserCompletedEvent) Is Nothing) Then
                Dim e As InvokeAsyncCompletedEventArgs = CType(state,InvokeAsyncCompletedEventArgs)
                RaiseEvent GetAllPropertiesForCurrentUserCompleted(Me, New GetAllPropertiesForCurrentUserCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState))
            End If
        End Sub
        
        Public Overloads Sub GetAllPropertiesForCurrentUserAsync(ByVal authenticatedUserOnly As Boolean)
            Me.GetAllPropertiesForCurrentUserAsync(authenticatedUserOnly, Nothing)
        End Sub
        
        Public Overloads Sub GetAllPropertiesForCurrentUserAsync(ByVal authenticatedUserOnly As Boolean, ByVal userState As Object)
            If (Me.onBeginGetAllPropertiesForCurrentUserDelegate Is Nothing) Then
                Me.onBeginGetAllPropertiesForCurrentUserDelegate = AddressOf Me.OnBeginGetAllPropertiesForCurrentUser
            End If
            If (Me.onEndGetAllPropertiesForCurrentUserDelegate Is Nothing) Then
                Me.onEndGetAllPropertiesForCurrentUserDelegate = AddressOf Me.OnEndGetAllPropertiesForCurrentUser
            End If
            If (Me.onGetAllPropertiesForCurrentUserCompletedDelegate Is Nothing) Then
                Me.onGetAllPropertiesForCurrentUserCompletedDelegate = AddressOf Me.OnGetAllPropertiesForCurrentUserCompleted
            End If
            MyBase.InvokeAsync(Me.onBeginGetAllPropertiesForCurrentUserDelegate, New Object() {authenticatedUserOnly}, Me.onEndGetAllPropertiesForCurrentUserDelegate, Me.onGetAllPropertiesForCurrentUserCompletedDelegate, userState)
        End Sub
        
        <System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)>  _
        Function RefProfileSvc_ProfileService_BeginSetPropertiesForCurrentUser(ByVal values As System.Collections.Generic.Dictionary(Of String, Object), ByVal authenticatedUserOnly As Boolean, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Implements RefProfileSvc.ProfileService.BeginSetPropertiesForCurrentUser
            Return MyBase.Channel.BeginSetPropertiesForCurrentUser(values, authenticatedUserOnly, callback, asyncState)
        End Function
        
        <System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)>  _
        Function RefProfileSvc_ProfileService_EndSetPropertiesForCurrentUser(ByVal result As System.IAsyncResult) As System.Collections.ObjectModel.ObservableCollection(Of String) Implements RefProfileSvc.ProfileService.EndSetPropertiesForCurrentUser
            Return MyBase.Channel.EndSetPropertiesForCurrentUser(result)
        End Function
        
        Private Function OnBeginSetPropertiesForCurrentUser(ByVal inValues() As Object, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Dim values As System.Collections.Generic.Dictionary(Of String, Object) = CType(inValues(0),System.Collections.Generic.Dictionary(Of String, Object))
            Dim authenticatedUserOnly As Boolean = CType(inValues(1),Boolean)
            Return CType(Me,RefProfileSvc.ProfileService).BeginSetPropertiesForCurrentUser(values, authenticatedUserOnly, callback, asyncState)
        End Function
        
        Private Function OnEndSetPropertiesForCurrentUser(ByVal result As System.IAsyncResult) As Object()
            Dim retVal As System.Collections.ObjectModel.ObservableCollection(Of String) = CType(Me,RefProfileSvc.ProfileService).EndSetPropertiesForCurrentUser(result)
            Return New Object() {retVal}
        End Function
        
        Private Sub OnSetPropertiesForCurrentUserCompleted(ByVal state As Object)
            If (Not (Me.SetPropertiesForCurrentUserCompletedEvent) Is Nothing) Then
                Dim e As InvokeAsyncCompletedEventArgs = CType(state,InvokeAsyncCompletedEventArgs)
                RaiseEvent SetPropertiesForCurrentUserCompleted(Me, New SetPropertiesForCurrentUserCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState))
            End If
        End Sub
        
        Public Overloads Sub SetPropertiesForCurrentUserAsync(ByVal values As System.Collections.Generic.Dictionary(Of String, Object), ByVal authenticatedUserOnly As Boolean)
            Me.SetPropertiesForCurrentUserAsync(values, authenticatedUserOnly, Nothing)
        End Sub
        
        Public Overloads Sub SetPropertiesForCurrentUserAsync(ByVal values As System.Collections.Generic.Dictionary(Of String, Object), ByVal authenticatedUserOnly As Boolean, ByVal userState As Object)
            If (Me.onBeginSetPropertiesForCurrentUserDelegate Is Nothing) Then
                Me.onBeginSetPropertiesForCurrentUserDelegate = AddressOf Me.OnBeginSetPropertiesForCurrentUser
            End If
            If (Me.onEndSetPropertiesForCurrentUserDelegate Is Nothing) Then
                Me.onEndSetPropertiesForCurrentUserDelegate = AddressOf Me.OnEndSetPropertiesForCurrentUser
            End If
            If (Me.onSetPropertiesForCurrentUserCompletedDelegate Is Nothing) Then
                Me.onSetPropertiesForCurrentUserCompletedDelegate = AddressOf Me.OnSetPropertiesForCurrentUserCompleted
            End If
            MyBase.InvokeAsync(Me.onBeginSetPropertiesForCurrentUserDelegate, New Object() {values, authenticatedUserOnly}, Me.onEndSetPropertiesForCurrentUserDelegate, Me.onSetPropertiesForCurrentUserCompletedDelegate, userState)
        End Sub
        
        <System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)>  _
        Function RefProfileSvc_ProfileService_BeginGetPropertiesMetadata(ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Implements RefProfileSvc.ProfileService.BeginGetPropertiesMetadata
            Return MyBase.Channel.BeginGetPropertiesMetadata(callback, asyncState)
        End Function
        
        <System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)>  _
        Function RefProfileSvc_ProfileService_EndGetPropertiesMetadata(ByVal result As System.IAsyncResult) As System.Collections.ObjectModel.ObservableCollection(Of RefProfileSvc.ProfilePropertyMetadata) Implements RefProfileSvc.ProfileService.EndGetPropertiesMetadata
            Return MyBase.Channel.EndGetPropertiesMetadata(result)
        End Function
        
        Private Function OnBeginGetPropertiesMetadata(ByVal inValues() As Object, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return CType(Me,RefProfileSvc.ProfileService).BeginGetPropertiesMetadata(callback, asyncState)
        End Function
        
        Private Function OnEndGetPropertiesMetadata(ByVal result As System.IAsyncResult) As Object()
            Dim retVal As System.Collections.ObjectModel.ObservableCollection(Of RefProfileSvc.ProfilePropertyMetadata) = CType(Me,RefProfileSvc.ProfileService).EndGetPropertiesMetadata(result)
            Return New Object() {retVal}
        End Function
        
        Private Sub OnGetPropertiesMetadataCompleted(ByVal state As Object)
            If (Not (Me.GetPropertiesMetadataCompletedEvent) Is Nothing) Then
                Dim e As InvokeAsyncCompletedEventArgs = CType(state,InvokeAsyncCompletedEventArgs)
                RaiseEvent GetPropertiesMetadataCompleted(Me, New GetPropertiesMetadataCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState))
            End If
        End Sub
        
        Public Overloads Sub GetPropertiesMetadataAsync()
            Me.GetPropertiesMetadataAsync(Nothing)
        End Sub
        
        Public Overloads Sub GetPropertiesMetadataAsync(ByVal userState As Object)
            If (Me.onBeginGetPropertiesMetadataDelegate Is Nothing) Then
                Me.onBeginGetPropertiesMetadataDelegate = AddressOf Me.OnBeginGetPropertiesMetadata
            End If
            If (Me.onEndGetPropertiesMetadataDelegate Is Nothing) Then
                Me.onEndGetPropertiesMetadataDelegate = AddressOf Me.OnEndGetPropertiesMetadata
            End If
            If (Me.onGetPropertiesMetadataCompletedDelegate Is Nothing) Then
                Me.onGetPropertiesMetadataCompletedDelegate = AddressOf Me.OnGetPropertiesMetadataCompleted
            End If
            MyBase.InvokeAsync(Me.onBeginGetPropertiesMetadataDelegate, Nothing, Me.onEndGetPropertiesMetadataDelegate, Me.onGetPropertiesMetadataCompletedDelegate, userState)
        End Sub
        
        Private Function OnBeginOpen(ByVal inValues() As Object, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return CType(Me,System.ServiceModel.ICommunicationObject).BeginOpen(callback, asyncState)
        End Function
        
        Private Function OnEndOpen(ByVal result As System.IAsyncResult) As Object()
            CType(Me,System.ServiceModel.ICommunicationObject).EndOpen(result)
            Return Nothing
        End Function
        
        Private Sub OnOpenCompleted(ByVal state As Object)
            If (Not (Me.OpenCompletedEvent) Is Nothing) Then
                Dim e As InvokeAsyncCompletedEventArgs = CType(state,InvokeAsyncCompletedEventArgs)
                RaiseEvent OpenCompleted(Me, New System.ComponentModel.AsyncCompletedEventArgs(e.[Error], e.Cancelled, e.UserState))
            End If
        End Sub
        
        Public Overloads Sub OpenAsync()
            Me.OpenAsync(Nothing)
        End Sub
        
        Public Overloads Sub OpenAsync(ByVal userState As Object)
            If (Me.onBeginOpenDelegate Is Nothing) Then
                Me.onBeginOpenDelegate = AddressOf Me.OnBeginOpen
            End If
            If (Me.onEndOpenDelegate Is Nothing) Then
                Me.onEndOpenDelegate = AddressOf Me.OnEndOpen
            End If
            If (Me.onOpenCompletedDelegate Is Nothing) Then
                Me.onOpenCompletedDelegate = AddressOf Me.OnOpenCompleted
            End If
            MyBase.InvokeAsync(Me.onBeginOpenDelegate, Nothing, Me.onEndOpenDelegate, Me.onOpenCompletedDelegate, userState)
        End Sub
        
        Private Function OnBeginClose(ByVal inValues() As Object, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return CType(Me,System.ServiceModel.ICommunicationObject).BeginClose(callback, asyncState)
        End Function
        
        Private Function OnEndClose(ByVal result As System.IAsyncResult) As Object()
            CType(Me,System.ServiceModel.ICommunicationObject).EndClose(result)
            Return Nothing
        End Function
        
        Private Sub OnCloseCompleted(ByVal state As Object)
            If (Not (Me.CloseCompletedEvent) Is Nothing) Then
                Dim e As InvokeAsyncCompletedEventArgs = CType(state,InvokeAsyncCompletedEventArgs)
                RaiseEvent CloseCompleted(Me, New System.ComponentModel.AsyncCompletedEventArgs(e.[Error], e.Cancelled, e.UserState))
            End If
        End Sub
        
        Public Overloads Sub CloseAsync()
            Me.CloseAsync(Nothing)
        End Sub
        
        Public Overloads Sub CloseAsync(ByVal userState As Object)
            If (Me.onBeginCloseDelegate Is Nothing) Then
                Me.onBeginCloseDelegate = AddressOf Me.OnBeginClose
            End If
            If (Me.onEndCloseDelegate Is Nothing) Then
                Me.onEndCloseDelegate = AddressOf Me.OnEndClose
            End If
            If (Me.onCloseCompletedDelegate Is Nothing) Then
                Me.onCloseCompletedDelegate = AddressOf Me.OnCloseCompleted
            End If
            MyBase.InvokeAsync(Me.onBeginCloseDelegate, Nothing, Me.onEndCloseDelegate, Me.onCloseCompletedDelegate, userState)
        End Sub
        
        Protected Overrides Function CreateChannel() As RefProfileSvc.ProfileService
            Return New ProfileServiceClientChannel(Me)
        End Function
        
        Private Class ProfileServiceClientChannel
            Inherits ChannelBase(Of RefProfileSvc.ProfileService)
            Implements RefProfileSvc.ProfileService
            
            Public Sub New(ByVal client As System.ServiceModel.ClientBase(Of RefProfileSvc.ProfileService))
                MyBase.New(client)
            End Sub
            
            Public Function BeginGetPropertiesForCurrentUser(ByVal properties As System.Collections.ObjectModel.ObservableCollection(Of String), ByVal authenticatedUserOnly As Boolean, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Implements RefProfileSvc.ProfileService.BeginGetPropertiesForCurrentUser
                Dim _args((2) - 1) As Object
                _args(0) = properties
                _args(1) = authenticatedUserOnly
                Dim _result As System.IAsyncResult = MyBase.BeginInvoke("GetPropertiesForCurrentUser", _args, callback, asyncState)
                Return _result
            End Function
            
            Public Function EndGetPropertiesForCurrentUser(ByVal result As System.IAsyncResult) As System.Collections.Generic.Dictionary(Of String, Object) Implements RefProfileSvc.ProfileService.EndGetPropertiesForCurrentUser
                Dim _args((0) - 1) As Object
                Dim _result As System.Collections.Generic.Dictionary(Of String, Object) = CType(MyBase.EndInvoke("GetPropertiesForCurrentUser", _args, result),System.Collections.Generic.Dictionary(Of String, Object))
                Return _result
            End Function
            
            Public Function BeginGetAllPropertiesForCurrentUser(ByVal authenticatedUserOnly As Boolean, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Implements RefProfileSvc.ProfileService.BeginGetAllPropertiesForCurrentUser
                Dim _args((1) - 1) As Object
                _args(0) = authenticatedUserOnly
                Dim _result As System.IAsyncResult = MyBase.BeginInvoke("GetAllPropertiesForCurrentUser", _args, callback, asyncState)
                Return _result
            End Function
            
            Public Function EndGetAllPropertiesForCurrentUser(ByVal result As System.IAsyncResult) As System.Collections.Generic.Dictionary(Of String, Object) Implements RefProfileSvc.ProfileService.EndGetAllPropertiesForCurrentUser
                Dim _args((0) - 1) As Object
                Dim _result As System.Collections.Generic.Dictionary(Of String, Object) = CType(MyBase.EndInvoke("GetAllPropertiesForCurrentUser", _args, result),System.Collections.Generic.Dictionary(Of String, Object))
                Return _result
            End Function
            
            Public Function BeginSetPropertiesForCurrentUser(ByVal values As System.Collections.Generic.Dictionary(Of String, Object), ByVal authenticatedUserOnly As Boolean, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Implements RefProfileSvc.ProfileService.BeginSetPropertiesForCurrentUser
                Dim _args((2) - 1) As Object
                _args(0) = values
                _args(1) = authenticatedUserOnly
                Dim _result As System.IAsyncResult = MyBase.BeginInvoke("SetPropertiesForCurrentUser", _args, callback, asyncState)
                Return _result
            End Function
            
            Public Function EndSetPropertiesForCurrentUser(ByVal result As System.IAsyncResult) As System.Collections.ObjectModel.ObservableCollection(Of String) Implements RefProfileSvc.ProfileService.EndSetPropertiesForCurrentUser
                Dim _args((0) - 1) As Object
                Dim _result As System.Collections.ObjectModel.ObservableCollection(Of String) = CType(MyBase.EndInvoke("SetPropertiesForCurrentUser", _args, result),System.Collections.ObjectModel.ObservableCollection(Of String))
                Return _result
            End Function
            
            Public Function BeginGetPropertiesMetadata(ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Implements RefProfileSvc.ProfileService.BeginGetPropertiesMetadata
                Dim _args((0) - 1) As Object
                Dim _result As System.IAsyncResult = MyBase.BeginInvoke("GetPropertiesMetadata", _args, callback, asyncState)
                Return _result
            End Function
            
            Public Function EndGetPropertiesMetadata(ByVal result As System.IAsyncResult) As System.Collections.ObjectModel.ObservableCollection(Of RefProfileSvc.ProfilePropertyMetadata) Implements RefProfileSvc.ProfileService.EndGetPropertiesMetadata
                Dim _args((0) - 1) As Object
                Dim _result As System.Collections.ObjectModel.ObservableCollection(Of RefProfileSvc.ProfilePropertyMetadata) = CType(MyBase.EndInvoke("GetPropertiesMetadata", _args, result),System.Collections.ObjectModel.ObservableCollection(Of RefProfileSvc.ProfilePropertyMetadata))
                Return _result
            End Function
        End Class
    End Class
End Namespace
