Share via


ResourceStoreCOM.Upload Method

Uploads a resource to the resource store.

Namespace:  Microsoft.SharePoint.Search.Extended.Administration.ResourceStorage
Assembly:  Microsoft.SharePoint.Search.Extended.Administration.ResourceStorage (in Microsoft.SharePoint.Search.Extended.Administration.ResourceStorage.dll)

Syntax

'Declaration
Public Function Upload ( _
    resourcePath As String, _
    data As Byte() _
) As Boolean
'Usage
Dim instance As ResourceStoreCOM
Dim resourcePath As String
Dim data As Byte()
Dim returnValue As Boolean

returnValue = instance.Upload(resourcePath, _
    data)
public bool Upload(
    string resourcePath,
    byte[] data
)

Parameters

  • resourcePath
    Type: System.String

    The path of the resource to upload.

  • data
    Type: []

    The byte array to use for the upload operation.

Return Value

Type: System.Boolean
[true] if the resource was successfully uploaded, [false] if the operation failed.

Implements

IResourceStoreCOM.Upload(String, [])

See Also

Reference

ResourceStoreCOM Class

ResourceStoreCOM Members

Microsoft.SharePoint.Search.Extended.Administration.ResourceStorage Namespace