共用方式為


SPIisWebServiceProxy class

抽象類別衍生的類別,可用來代表安裝在伺服器陣列中的 Web 服務 proxy。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.Administration.SPPersistedObject
      Microsoft.SharePoint.Administration.SPPersistedUpgradableObject
        Microsoft.SharePoint.Administration.SPServiceProxy
          Microsoft.SharePoint.Administration.SPIisWebServiceProxy

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

Syntax

'宣告
<GuidAttribute("9AAC1C77-4274-4595-9CB0-9740B73E5A70")> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public MustInherit Class SPIisWebServiceProxy _
    Inherits SPServiceProxy
'用途
Dim instance As SPIisWebServiceProxy
[GuidAttribute("9AAC1C77-4274-4595-9CB0-9740B73E5A70")]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public abstract class SPIisWebServiceProxy : SPServiceProxy

備註

此範例將示範如何使用SPIisWebServiceProxy和IServiceProxyAdministration

internal sealed class SampleWebServiceProxy : SPIisWebServiceProxy, IServiceProxyAdministration
    {

        public SampleWebServiceProxy()
        {
        }

        // NOTE: A constructor with the signature (String, SPFarm) is required
        // if this service proxy is installed by psconfig -cmd services -install.
        internal SampleWebServiceProxy(
            SPFarm farm)
            : base(farm)
        {
        }
Friend NotInheritable Class SampleWebServiceProxy
    Inherits SPIisWebServiceProxy
    Implements IServiceProxyAdministration

        Public Sub New()
        End Sub

        ' NOTE: A constructor with the signature (String, SPFarm) is required
        ' if this service proxy is installed by psconfig -cmd services -install.
        Friend Sub New(ByVal farm As SPFarm)
            MyBase.New(farm)
        End Sub

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

請參閱

參照

SPIisWebServiceProxy members

Microsoft.SharePoint.Administration namespace