共用方式為


SPWebApplication.UserPhotoImportEnabled property

取得或設定是否要啟用圖片匯入功能。

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

Syntax

'宣告
Public Property UserPhotoImportEnabled As Boolean
    Get
    Set
'用途
Dim instance As SPWebApplication
Dim value As Boolean

value = instance.UserPhotoImportEnabled

instance.UserPhotoImportEnabled = value
public bool UserPhotoImportEnabled { get; set; }

Property value

Type: System.Boolean
若要啟用圖片匯入功能 ; true否則false。

請參閱

參照

SPWebApplication class

SPWebApplication members

Microsoft.SharePoint.Administration namespace