SPColor.Open method (SPFile, Boolean)
開啟 SPColor 檔案指定 SPFile
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function Open ( _
file As SPFile, _
readPublishedVersion As Boolean _
) As SPColor
'用途
Dim file As SPFile
Dim readPublishedVersion As Boolean
Dim returnValue As SPColor
returnValue = SPColor.Open(file, readPublishedVersion)
public static SPColor Open(
SPFile file,
bool readPublishedVersion
)
參數
file
Type: Microsoft.SharePoint.SPFile要開啟的色彩調色盤檔案
readPublishedVersion
Type: System.Boolean是否要尋找僅檔案的發佈版本。請注意是否沒有指定檔案的版本,則方法會傳回 null。
傳回值
Type: Microsoft.SharePoint.Utilities.SPColor
SPColor 物件,表示已開啟,則為 null,如果找不到沒有這類檔案中的 [色彩] 調色盤。