Méthode | Description | |
---|---|---|
AddField ( SPFieldCollection fieldCollection, System.Xml.Linq.XElement fieldXml ) : string |
Adds a field defined in xml to a collection of fields.
|
|
AddFields ( SPFieldCollection fieldCollection, System.Xml.Linq.XDocument fieldsXml ) : IList |
Adds a collection of fields defined in xml to a collection of fields.
|
|
FieldHelper ( ILogger logger ) : System |
Default constructor with dependency injection
|
|
GetFieldById ( SPFieldCollection fieldCollection, System.Guid fieldId ) : SPField |
Gets the field by identifier. Returns null if the field is not found in the collection.
|
|
SetLookupToList ( SPFieldCollection fieldCollection, System.Guid fieldId, SPList lookupList ) : void |
Sets the lookup to a list.
|
|
SetLookupToList ( SPFieldLookup lookupField, SPList lookupList ) : void |
Sets the lookup to a list.
|
Méthode | Description | |
---|---|---|
FieldExists ( SPFieldCollection fieldCollection, string displayName, System.Guid fieldId ) : bool | ||
FixLookupFieldXml ( SPWeb web, System.Xml.Linq.XElement fieldXml ) : System.Xml.Linq.XElement | ||
GetAttributeValue ( System.Xml.Linq.XElement fieldXml, string key ) : string | ||
IsFieldXmlValid ( System.Xml.Linq.XElement fieldXml, System.Guid &id, string &displayName, string &internalName ) : bool | ||
IsLookup ( System.Xml.Linq.XElement fieldXml ) : bool | ||
SetLookupToList ( SPWeb web, System.Guid fieldId, string listUrl ) : void |
public AddField ( SPFieldCollection fieldCollection, System.Xml.Linq.XElement fieldXml ) : string | ||
fieldCollection | SPFieldCollection | The SPField collection. |
fieldXml | System.Xml.Linq.XElement | The field XML schema. |
Résultat | string |
public AddFields ( SPFieldCollection fieldCollection, System.Xml.Linq.XDocument fieldsXml ) : IList |
||
fieldCollection | SPFieldCollection | The SPField collection. |
fieldsXml | System.Xml.Linq.XDocument | The field schema XMLs. |
Résultat | IList |
public FieldHelper ( ILogger logger ) : System | ||
logger | ILogger | The logger |
Résultat | System |
public GetFieldById ( SPFieldCollection fieldCollection, System.Guid fieldId ) : SPField | ||
fieldCollection | SPFieldCollection | The field collection. |
fieldId | System.Guid | The field identifier. |
Résultat | SPField |
public SetLookupToList ( SPFieldCollection fieldCollection, System.Guid fieldId, SPList lookupList ) : void | ||
fieldCollection | SPFieldCollection | The field collection. |
fieldId | System.Guid | The field identifier of the lookup field. |
lookupList | SPList | The lookup list. |
Résultat | void |
public SetLookupToList ( SPFieldLookup lookupField, SPList lookupList ) : void | ||
lookupField | SPFieldLookup | The lookup field. |
lookupList | SPList | The lookup list. |
Résultat | void |