Click or drag to resize

PFFileReference Class

Object referencing a PFFile, with the ids and GUIDs of the file and parents, its url and name.
Inheritance Hierarchy

Namespace:  Packflow.Core
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
public sealed class PFFileReference : PFItemReference

The PFFileReference type exposes the following members.

Constructors
  NameDescription
Public methodPFFileReference(PFFile)
Initializes a new instance of the PFFileReference class.
Public methodPFFileReference(PFSite, String)
Initializes a new instance of the PFFileReference class.
Top
Properties
  NameDescription
Public propertyApplicationGuid
Gets the parent application GUID.
(Inherited from PFItemReference.)
Public propertyApplicationId
Gets the parent application id.
(Inherited from PFItemReference.)
Public propertyContentTypeGuid
Gets the parent content-type GUID.
(Inherited from PFItemReference.)
Public propertyContentTypeId
Gets the parent content-type id.
(Inherited from PFItemReference.)
Public propertyFileGuid
Gets the file GUID.
Public propertyFileId
Gets the file id.
Public propertyItemGuid
Gets the item GUID.
(Inherited from PFItemReference.)
Public propertyItemId
Gets the item id.
(Inherited from PFItemReference.)
Public propertyItemLoaded
Gets a value indicating whether the PFItem instance is currently loaded.
(Inherited from PFItemReference.)
Public propertyName
Gets the file name.
Public propertySite
Gets the parent site.
Public propertySiteGuid
Gets the parent site GUID.
(Inherited from PFItemReference.)
Public propertySiteId
Gets the parent site id.
(Inherited from PFItemReference.)
Public propertyText Obsolete.
File name. Obsolete, use Name property.
Public propertyUrl
Gets or sets the relative URL of the file. Note: this URL may be outdated due to a change of application/content-type name. The "GetFileUrl" method can be used instead.
Top
Methods
  NameDescription
Public methodGetFileAltUrl
Gets an name based url to the file. NOTE: this URL may be outdated if the name of the application, file or content-type has changed.
Public methodGetFileUrl
Gets an up-to-date url to the file. Note: the stored URL may be outdated if the name of the application or content-type has changed.
Public methodGetItem
Gets the corresponding PFItem. The item is just returned (without any query) if already loaded in this instance.
(Inherited from PFItemReference.)
Public methodGetItemUrl
Gets an up-to-date url to the item form. Note: the stored URL may be outdated if the name of the target application or content-type has changed.
(Inherited from PFItemReference.)
Public methodToString
Returns a string that represents the current object. This string can be later used in the constructor to restore this object.
(Overrides PFItemReferenceToString.)
Public methodUnloadItem
Unloads the current loaded PFItem instance.
(Inherited from PFItemReference.)
Top
Extension Methods
  NameDescription
Public Extension MethodAsT
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.)
Public Extension MethodEqualsAll
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.)
Public Extension MethodEqualsAny
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.)
Public Extension MethodGetString
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.)
Public Extension MethodIsGenericListOverloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.)
Public Extension MethodIsGenericList(Type)Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.)
Public Extension MethodSerializeOverloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerialize(String)Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerializeJsonOverloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(ListType)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(DataContractJsonSerializerSettings)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Top
See Also