메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
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. |
리턴 | 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. |
리턴 | IList |
public FieldHelper ( ILogger logger ) : System | ||
logger | ILogger | The logger |
리턴 | System |
public GetFieldById ( SPFieldCollection fieldCollection, System.Guid fieldId ) : SPField | ||
fieldCollection | SPFieldCollection | The field collection. |
fieldId | System.Guid | The field identifier. |
리턴 | 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. |
리턴 | void |
public SetLookupToList ( SPFieldLookup lookupField, SPList lookupList ) : void | ||
lookupField | SPFieldLookup | The lookup field. |
lookupList | SPList | The lookup list. |
리턴 | void |