You create a Microsoft Windows SharePoint Services site.
You need to change the group of the site column.
Which code segment should you use?
A.
Protected Sub ChangeGroup(ByVal web As SPWeb, _
ByVal fieldName As String)
Dim changegroup As String = “MyNewColumnGroup”
Dim myFieldName As SPField = web.AvailableFields(f ieldName)
myFieldName.Group = changegroup
web.Update()
End Sub
B.
Protected Sub ChangeGroup(ByVal web As SPWeb, _
ByVal fieldName As String)
Dim myFieldName As SPField = web.AvailableFields(f ieldName)
myFieldName.Group = “MyNewColumnGroup”
myFieldName.Update()
End Sub
C.
Protected Sub ChangeGroup(ByVal web As SPWeb, _
ByVal fieldName As String)
Dim changegroup As String = “MyNewColumnGroup”
Dim myFieldName As SPField = web.AvailableFields(f ieldName)
myFieldName.SetCustomProperty(“Group”, changegroup)
web.Update()
End Sub
D.
Protected Sub ChangeGroup(ByVal web As SPWeb, _
ByVal fieldName As String)
Dim changegroup As String = “MyNewColumnGroup”
Dim myFieldName As SPField = web.AvailableFields(f ieldName)
myFieldName.SetCustomProperty(“Group”, changegroup)
myFieldName.Update()
End Sub