ColleagueManager.Create 方法
为指定的类型和隐私级别创建一个Colleague对象。
命名空间: Microsoft.Office.Server.UserProfiles
程序集: Microsoft.Office.Server.UserProfiles(位于 Microsoft.Office.Server.UserProfiles.dll 中)
语法
声明
Public Function Create ( _
colleague As UserProfile, _
colleagueGroupType As ColleagueGroupType, _
strGroup As String, _
isInWorkgroup As Boolean, _
privacyLevel As Privacy _
) As Colleague
用法
Dim instance As ColleagueManager
Dim colleague As UserProfile
Dim colleagueGroupType As ColleagueGroupType
Dim strGroup As String
Dim isInWorkgroup As Boolean
Dim privacyLevel As Privacy
Dim returnValue As Colleague
returnValue = instance.Create(colleague, _
colleagueGroupType, strGroup, isInWorkgroup, _
privacyLevel)
public Colleague Create(
UserProfile colleague,
ColleagueGroupType colleagueGroupType,
string strGroup,
bool isInWorkgroup,
Privacy privacyLevel
)
参数
colleague
类型:Microsoft.Office.Server.UserProfiles.UserProfile同事的UserProfile对象。
colleagueGroupType
类型:Microsoft.Office.Server.UserProfiles.ColleagueGroupType下列情况之一: Peer、 UserSpecified或General。
strGroup
类型:System.String组的名称的同事应该下。
isInWorkgroup
类型:System.Boolean确定该同事是否应为工作组的一部分。
privacyLevel
类型:Microsoft.Office.Server.UserProfiles.Privacy同事的隐私级别。
返回值
类型:Microsoft.Office.Server.UserProfiles.Colleague
一个新创建的Colleague对象。