共用方式為


Lists.GetListContentTypesAndProperties method

會傳回指定之的清單內容類型的屬性與內容類型定義結構描述。

Namespace:  WebSvcLists
Assembly:  STSSOAP (in STSSOAP.dll)

Syntax

'宣告
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/GetListContentTypesAndProperties", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/",  _
    ResponseNamespace := "https://schemas.microsoft.com/sharepoint/soap/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetListContentTypesAndProperties ( _
    listName As String, _
    contentTypeId As String, _
    propertyPrefix As String, _
    includeWebProperties As Boolean, _
    includeWebPropertiesSpecified As Boolean _
) As XmlNode
'用途
Dim instance As Lists
Dim listName As String
Dim contentTypeId As String
Dim propertyPrefix As String
Dim includeWebProperties As Boolean
Dim includeWebPropertiesSpecified As Boolean
Dim returnValue As XmlNode

returnValue = instance.GetListContentTypesAndProperties(listName, _
    contentTypeId, propertyPrefix, includeWebProperties, _
    includeWebPropertiesSpecified)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/GetListContentTypesAndProperties", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/", 
    ResponseNamespace = "https://schemas.microsoft.com/sharepoint/soap/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public XmlNode GetListContentTypesAndProperties(
    string listName,
    string contentTypeId,
    string propertyPrefix,
    bool includeWebProperties,
    bool includeWebPropertiesSpecified
)

參數

  • contentTypeId
    Type: System.String

    String,代表要刪除之XMLDocument元素的內容類型的內容類型識別碼。

  • propertyPrefix
    Type: System.String

    應啟動其內容包含在傳回的字串。

  • includeWebProperties
    Type: System.Boolean

    布林值,指出是否應該包含來自父網站清單的屬性。

  • includeWebPropertiesSpecified
    Type: System.Boolean

    布林值,指出是否應該包含來自父網站清單的屬性。

傳回值

Type: System.Xml.XmlNode
代表在清單及要求屬性的內容類型的 XML。

請參閱

參照

Lists class

Lists members

WebSvcLists namespace