Export (0) Print
Expand All

IServiceProxyAdministration interface

Administrative support for creating and connecting proxies to remote service applications.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
PublicInterfaceIServiceProxyAdministration
'Usage
DiminstanceAsIServiceProxyAdministration

In this example, SampleWebServiceProxy inherits from SPIisWebServiceProxy and implements the IServiceProxyAdministration interface.

    Imports Microsoft.SharePoint.Administration

    <Guid("470DC8EA-77FB-4623-87F7-3237E2B21B02"), SupportedServiceApplication("1D14CB15-2DB1-4395-B187-70355C829630", "1.0.0.0", GetType(SampleWebServiceApplicationProxy))> _
    Friend NotInheritable Class SampleWebServiceProxy
        Inherits SPIisWebServiceProxy
        Implements IServiceProxyAdministration

Implement IServiceProxyAdministration to support connections to service applications in remote farms using the "Connect" button on the ribbon on the Service Application Management page.

IServiceProxyAdministration requires the GetProxyTypes, GetProxyDescription and CreateProxy methods to be implemented.

                #Region "IServiceProxyAdministration Members"
                Public Function GetProxyTypes() As Type()
                        Return New Type() { GetType(SampleWebServiceApplicationProxy) }
                End Function
                Public Function GetProxyTypeDescription(ByVal serviceApplicationProxyType As Type) As SPPersistedTypeDescription
                        Return New SPPersistedTypeDescription("Sample Web Service Proxy", "Connects to the Sample Web Service.")
                End Function
                Public Function CreateProxy(ByVal serviceApplicationProxyType As Type, ByVal name As String, ByVal serviceApplicationUri As Uri, ByVal provisioningContext As SPServiceProvisioningContext) As SPServiceApplicationProxy
                        ' Create a proxy for the specified (typically remote) service application
                        Return New SampleWebServiceApplicationProxy(name, Me, serviceApplicationUri)
                End Function
                #End Region

Community Additions

ADD
Show:
© 2014 Microsoft