共用方式為


SPListItem.FileSystemObjectType property

取得或設定檔案系統物件類型的項目。

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

Syntax

'宣告
Public Property FileSystemObjectType As SPFileSystemObjectType
    Get
    Set
'用途
Dim instance As SPListItem
Dim value As SPFileSystemObjectType

value = instance.FileSystemObjectType

instance.FileSystemObjectType = value
public SPFileSystemObjectType FileSystemObjectType { get; set; }

Property value

Type: Microsoft.SharePoint.SPFileSystemObjectType
會指出類型的列舉值: 檔案、 資料夾、 Web 或無效。

Exceptions

Exception Condition
ArgumentException

您可以設定此屬性僅針對新的清單項目。目前的項目不是新 ;它已保存在資料庫中。

備註

只有有效新SPListItem物件上設定此屬性,亦即Update之前第一次呼叫方法,而且此項目保存在資料庫中。

請參閱

參照

SPListItem class

SPListItem members

Microsoft.SharePoint namespace