次の方法で共有


File メンバー

保護されたメンバーを含む
宣言されたメンバーを含む

Represents a file in a SharePoint Web site that can be a Web Part Page, an item in a document library, or a file in a folder.

File 型は次のメンバーを公開します。

コンストラクター

  名前 説明
パブリック メソッド File Initializes a new instance of the File object.

Top

プロパティ

  名前 説明
パブリック プロパティ Author Gets a value that specifies the user who added the file.
パブリック プロパティ CheckedOutByUser Gets a value that returns the user who has checked out the file.
パブリック プロパティ CheckInComment Gets a value that returns the comment used when a document is checked into a document library.
パブリック プロパティ CheckOutType Gets a value that specifies the type of check out associated with the file.
パブリック プロパティ ContentTag Returns internal version of content, used to validate document equality for read purposes.
パブリック プロパティ Context クライアントのオブジェクトに関連付けられているコンテキストを返します。 (ClientObject から継承されています。)
パブリック プロパティ CustomizedPageStatus Gets a value that specifies the customization status of the file.
パブリック プロパティ EffectiveInformationRightsManagementSettings
パブリック プロパティ ETag Gets a value that specifies the ETag value.
パブリック プロパティ Exists Gets a value that specifies whether the file exists.
パブリック プロパティ InformationRightsManagementSettings
パブリック プロパティ IrmEnabled
パブリック プロパティ Length Gets the size of the file in bytes, excluding the size of any Web Parts that are used in the file.
パブリック プロパティ Level Gets a value that specifies the publishing level of the file.
パブリック プロパティ LinkingUrl
パブリック プロパティ ListId
パブリック プロパティ ListItemAllFields Gets a value that specifies the list item field values for the list item corresponding to the file.
パブリック プロパティ LockedByUser Gets a value that returns the user that owns the current lock on the file.
パブリック プロパティ MajorVersion Gets a value that specifies the major version of the file.
パブリック プロパティ MinorVersion Gets a value that specifies the minor version of the file.
パブリック プロパティ ModifiedBy Gets a value that returns the user who last modified the file.
パブリック プロパティ Name Gets the name of the file including the extension.
保護されたプロパティ ObjectData 現在のクライアント オブジェクトのオブジェクトのデータを取得します。 (ClientObject から継承されています。)
パブリック プロパティ ObjectVersion 現在のクライアント オブジェクトのバージョンを示す文字列を取得します。このメンバーは内部使用のために予約済みです。ユーザーのコードから直接使用されるものではありません。 (ClientObject から継承されています。)
パブリック プロパティ Path クライアント オブジェクトの作成方法ClientRuntimeContextクラスのサーバー上でオブジェクトを再作成することができるようにを追跡します。このメンバーは内部使用のために予約済みです。ユーザーのコードから直接使用されるものではありません。 (ClientObject から継承されています。)
パブリック プロパティ Properties
パブリック プロパティ ServerObjectIsNull サーバー オブジェクトを取得し、サーバー オブジェクトが null の場合は、null を返します。 (ClientObject から継承されています。)
パブリック プロパティ ServerRelativeUrl Gets the relative URL of the file based on the URL for the server.
パブリック プロパティ SiteId
パブリック プロパティ Tag したがって、または、クライアント オブジェクトに関連付けられているデータを設定します。 (ClientObject から継承されています。)
パブリック プロパティ TimeCreated Gets a value that specifies when the file was created.
パブリック プロパティ TimeLastModified Gets a value that specifies when the file was last modified.
パブリック プロパティ Title Gets a value that specifies the display name of the file.
パブリック プロパティ TypedObject サーバーから返された正しい型の情報と、オブジェクトを取得します。 (ClientObject から継承されています。)
パブリック プロパティ UIVersion Gets a value that specifies the implementation-specific version identifier of the file.
パブリック プロパティ UIVersionLabel Gets a value that specifies the implementation-specific version identifier of the file.
パブリック プロパティ UniqueId
パブリック プロパティ VersionEvents
パブリック プロパティ Versions Gets a value that returns a collection of file version objects that represent the versions of the file.
パブリック プロパティ WebId

Top

メソッド

  名前 説明
パブリック メソッド Approve Approves the file submitted for content approval with the specified comment.
パブリック メソッド CancelUpload Stops the chunk upload session without saving the uploaded data. If the file doesn’t already exist in the library, the partially updated file will be deleted. Use this in response to user action (as in a request to cancel an upload) or an error or exception.
パブリック メソッド CheckIn Checks the file in to a document library based on the check-in type.
パブリック メソッド CheckOut Checks out the file from a document library based on the check out type.
保護されたメソッド CheckUninitializedProperty ClientObjectの指定された値の種類のプロパティが初期化されているかどうかを確認します。 (ClientObject から継承されています。)
パブリック メソッド ContinueUpload Continues the chunk upload session with an additional fragment. The current file content is not changed.
パブリック メソッド CopyTo Copies the file to the destination URL. Server must overwrite an existing file of the same name if bOverwrite is true.
パブリック メソッド CustomFromJson ユーザー設定のコードを使用するオブジェクトを作成するかどうかを示す論理値を返します。このメンバーは内部使用のために予約済みです。ユーザーのコードから直接使用されるものではありません。 (ClientObject から継承されています。)
パブリック メソッド DeleteObject Deletes the file object.
パブリック メソッド Deny Denies approval for a file that was submitted for content approval.
パブリック メソッド ExecuteCobaltRequest
パブリック メソッド FinishUpload Uploads the last file fragment and commits the file. The current file content is changed when this method completes.
パブリック メソッド FromJson ユーザー設定のコードを使用するオブジェクトを作成するかどうかを示します。このメンバーは内部使用のために予約済みです。ユーザーのコードから直接使用されるものではありません。 (ClientObject から継承されています。)
パブリック メソッド静的メンバー GetContentVerFromTag Reserved for internal use only. This method exposes the internal ContentVersion value inside of a ContentTag.
パブリック メソッド GetImagePreviewUrl
パブリック メソッド GetLimitedWebPartManager Specifies the control set used to access, modify, or add Web Parts associated with this Web Part Page and view.
パブリック メソッド GetPreAuthorizedAccessUrl
パブリック メソッド GetWOPIFrameUrl
保護されたメソッド InitNonPropertyFieldFromJson サーバーからJavaScript Object Notation (JSON)データに基づいて、クライアント オブジェクトのプロパティ以外のフィールドを初期化します。このメンバーは内部使用のために予約済みです。ユーザーのコードから直接使用されるものではありません。 (ClientObject から継承されています。)
保護されたメソッド InitOnePropertyFromJson (ClientObject.InitOnePropertyFromJson(String, JsonReader) を上書きします。)
パブリック メソッド IsObjectPropertyInstantiated 指定された、クライアント オブジェクトのプロパティがインスタンスになっているかどうかを示します。 (ClientObject から継承されています。)
パブリック メソッド IsPropertyAvailable 指定したスカラー プロパティの取得または設定されているかどうかを示す論理値を返します。 (ClientObject から継承されています。)
保護されたメソッド LoadExpandoFields 派生クラスでオーバーライドされた場合は、クライアント オブジェクトに関連付けられている拡張されたプロパティを初期化します。 (ClientObject から継承されています。)
パブリック メソッド MoveTo Moves the file to the specified destination URL.
パブリック メソッド静的メンバー OpenBinaryDirect(ClientContext, String) Downloads the specified file from a SharePoint site without requiring an ExecuteQuery() method call.
パブリック メソッド静的メンバー OpenBinaryDirect(ClientContext, String, EventHandler<OpenBinarySucceededEventArgs>, EventHandler<OpenBinaryFailedEventArgs>)
パブリック メソッド OpenBinaryStream Opens the file as a stream.
パブリック メソッド Publish Submits the file for content approval with the specified comment.
パブリック メソッド Recycle Moves the file to the Recycle Bin and returns the identifier of the new Recycle Bin item.
パブリック メソッド RefreshLoad 派生クラスでオーバーライドされた場合は、クライアント オブジェクトに関連付けられているすべてのスカラー プロパティを再ロードします。 (ClientObject から継承されています。)
保護されたメソッド RemoveFromParentCollection 親のクライアント オブジェクトのコレクションから現在のクライアント オブジェクトを削除します。 (ClientObject から継承されています。)
パブリック メソッド Retrieve() オブジェクトに関連付けられているすべてのスカラー プロパティを取得します。このメンバーは内部使用のために予約済みです。ユーザーのコードから直接使用されるものではありません。 (ClientObject から継承されています。)
パブリック メソッド Retrieve([]) オブジェクトに関連付けられている、指定したスカラー プロパティを取得します。このメンバーは内部使用のために予約済みです。ユーザーのコードから直接使用されるものではありません。 (ClientObject から継承されています。)
パブリック メソッド SaveBinary Saves the specified file into a document library.
パブリック メソッド静的メンバー SaveBinaryDirect(ClientContext, String, Stream, Boolean) Uploads the specified file to a SharePoint site without requiring an ExecuteQuery() method call.
パブリック メソッド静的メンバー SaveBinaryDirect(ClientContext, String, Stream, String) Uploads the specified file to a SharePoint site with the specified Etag without requiring an ExecuteQuery() method call.
パブリック メソッド StartUpload Starts a new chunk upload session and uploads the first fragment. The current file content is not changed when this method completes. The method is idempotent (and therefore does not change the result) as long as you use the same values for uploadId and stream.The upload session ends either when you use the CancelUpload(Guid) method or when you successfully complete the upload session by passing the rest of the file contents through the ContinueUpload(Guid, Int64, Stream) and FinishUpload(Guid, Int64, Stream) methods.For example, you can pass a 35 MB file by dividing it into three 10 MB streams and one 5 MB stream and uploading them this way (using the resulting offset values of 10, 20 and 30 MB):StartUpload(GUID, stream1)
ContinueUpload(GUID, 10 MB, stream2)
ContinueUpload(GUID, 20 MB, stream3)
FinishUpload(GUID, 30 MB, stream4)The StartUpload(Guid, Stream) and ContinueUpload(Guid, Int64, Stream) methods return the size of the running total of uploaded data in bytes, so you can pass those return values to subsequent uses of ContinueUpload(Guid, Int64, Stream) and FinishUpload(Guid, Int64, Stream)
パブリック メソッド ToString (Object から継承されています。)
パブリック メソッド UndoCheckOut Reverts an existing checkout for the file.
パブリック メソッド UnPublish Removes the file from content approval or unpublish a major version.
パブリック メソッド Update
保護されたメソッド UpdateClientObjectPropertyType 正しい型に、サーバーから返されたタイプの情報を使用して、クライアント オブジェクト プロパティの値を更新します。 (ClientObject から継承されています。)

Top

関連項目

参照先

File クラス

Microsoft.SharePoint.Client 名前空間