WebPartPagesWebService.GetWebPart2 - Méthode
Retourne les données XML pour un composant WebPart dynamique.
Espace de noms : WebSvcwebpartpages
Assembly : STSSOAP (dans STSSOAP.dll)
Syntaxe
'Déclaration
<SoapDocumentMethodAttribute("https://microsoft.com/sharepoint/webpartpages/GetWebPart2", RequestNamespace := "https://microsoft.com/sharepoint/webpartpages", _
ResponseNamespace := "https://microsoft.com/sharepoint/webpartpages", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetWebPart2 ( _
pageurl As String, _
storageKey As Guid, _
storage As Storage, _
behavior As SPWebServiceBehavior _
) As String
'Utilisation
Dim instance As WebPartPagesWebService
Dim pageurl As String
Dim storageKey As Guid
Dim storage As Storage
Dim behavior As SPWebServiceBehavior
Dim returnValue As String
returnValue = instance.GetWebPart2(pageurl, _
storageKey, storage, behavior)
[SoapDocumentMethodAttribute("https://microsoft.com/sharepoint/webpartpages/GetWebPart2", RequestNamespace = "https://microsoft.com/sharepoint/webpartpages",
ResponseNamespace = "https://microsoft.com/sharepoint/webpartpages",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public string GetWebPart2(
string pageurl,
Guid storageKey,
Storage storage,
SPWebServiceBehavior behavior
)
Paramètres
pageurl
Type : System.StringUne chaîne contenant l'URL de la page contenant le composant WebPart
storageKey
Type : System.GuidUn GUID qui identifie le composant WebPart
storage
Type : WebSvcwebpartpages.StorageUne valeur Storage qui indique comment le composant WebPart est stocké
behavior
Type : WebSvcwebpartpages.SPWebServiceBehaviorUn objet d'énumération SPWebServiceBehavior qui indique si le client prend en charge Windows SharePoint Services 2.0 ou Windows SharePoint Services 3.0.
Valeur renvoyée
Type : System.String
string contenant le code XML pour un composant WebPart inclure les champs de nom d'assembly et de type.
Remarques
Pour accéder à ses méthodes et le service WebPartPagesWebService , définissez une référence Web à http://Virtual_Server_Name:Port_Number/_vti_adm/WebPartPages.asmx.