共用方式為


SPFeatureDefinition.GetFile method

取得SPFeature物件中指定的檔案的檔案資料流。

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

Syntax

'宣告
Public Function GetFile ( _
    featureRelativePath As String _
) As Stream
'用途
Dim instance As SPFeatureDefinition
Dim featureRelativePath As String
Dim returnValue As Stream

returnValue = instance.GetFile(featureRelativePath)
public Stream GetFile(
    string featureRelativePath
)

參數

  • featureRelativePath
    Type: System.String

    檔案的功能相對路徑。

傳回值

Type: System.IO.Stream
在featureRelativePath找到檔案資料流。

Exceptions

Exception Condition
ArgumentNullException

featureRelativePath時a null reference (Nothing in Visual Basic)擲回。

FileNotFoundException

擲回時featureRelativePath不存在。

請參閱

參照

SPFeatureDefinition class

SPFeatureDefinition members

Microsoft.SharePoint.Administration namespace