다음을 통해 공유


ReportingService2006.CreateResource 메서드

Adds a new resource to a SharePoint library.

네임스페이스:  ReportService2006
어셈블리:  ReportService2006(ReportService2006.dll)

구문

‘선언
Public Function CreateResource ( _
    Resource As String, _
    Parent As String, _
    Overwrite As Boolean, _
    Contents As Byte(), _
    MimeType As String, _
    Properties As Property() _
) As CatalogItem
‘사용 방법
Dim instance As ReportingService2006 
Dim Resource As String 
Dim Parent As String 
Dim Overwrite As Boolean 
Dim Contents As Byte()
Dim MimeType As String 
Dim Properties As Property()
Dim returnValue As CatalogItem 

returnValue = instance.CreateResource(Resource, _
    Parent, Overwrite, Contents, MimeType, _
    Properties)
public CatalogItem CreateResource(
    string Resource,
    string Parent,
    bool Overwrite,
    byte[] Contents,
    string MimeType,
    Property[] Properties
)
public:
CatalogItem^ CreateResource(
    String^ Resource, 
    String^ Parent, 
    bool Overwrite, 
    array<unsigned char>^ Contents, 
    String^ MimeType, 
    array<Property^>^ Properties
)
member CreateResource : 
        Resource:string * 
        Parent:string * 
        Overwrite:bool * 
        Contents:byte[] * 
        MimeType:string * 
        Properties:Property[] -> CatalogItem
public function CreateResource(
    Resource : String, 
    Parent : String, 
    Overwrite : boolean, 
    Contents : byte[], 
    MimeType : String, 
    Properties : Property[]
) : CatalogItem

매개 변수

  • Parent
    유형: System.String
    The fully qualified URL for the parent folder that will contain the resource.
  • Overwrite
    유형: System.Boolean
    A Boolean expression that specifies whether to overwrite an existing resource with the same name and path. The default value is false.
  • Contents
    유형: array<System.Byte[]
    The contents of the resource file.
  • MimeType
    유형: System.String
    The MIME type of the resource. The maximum size is 260 characters.

반환 값

유형: ReportService2006.CatalogItem
A CatalogItem object for the newly created resource.

주의

The table below shows header and permissions information on this operation.

SOAP Headers

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Required Permissions

Creating a new resource: AddListItems on Parent

Updating an existing resource: EditListItems on Resource

The length of the Parent parameter cannot exceed 260 characters; otherwise, a SOAP exception is thrown with the error code rsItemLengthExceeded.

The Parent parameter cannot be null or empty or contain the following reserved characters: : ? ; @ & = + $ , \ * > < | . ". You can use the forward slash character (/) to separate items in the full path name of the folder, but you cannot use it at the end of the folder name.

If errors occur, the resource is not created.

Adding a resource to a SharePoint library modifies the ModifiedBy and ModifiedDate properties of the parent folder.

참고 항목

참조

ReportingService2006 클래스

ReportService2006 네임스페이스