2010-05-06 73 views

回答

2

您可以使用web.FieldsContentTypes[typeName].Fields

SPWeb web = ... ; 

SPFieldChoice choice = (SPFieldChoice)web.Fields[namefield]; 

SPFieldChoice choice = (SPFieldChoice)web.ContentTypes[typeName].Fields[namefield]; 
相關問題