MAPIFolder.GetCustomIcon Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an StdPicture object that represents the custom icon for the folder.
public:
stdole::StdPicture ^ GetCustomIcon();
public stdole.StdPicture GetCustomIcon ();
Public Function GetCustomIcon () As StdPicture
Returns
Returns an StdPicture object that represents a custom icon for the folder.
Remarks
The returned StdPicture object has its Type property equal to PICTYPE_ICON or PICTYPE_BITMAP.
GetCustomIcon returns Nothing (a null reference (Nothing in Visual Basic) in C#) if the folder does not have a custom folder icon, or if the folder belongs to one of the following groups of folders:
You can only call GetCustomIcon from code that runs in-process as Outlook. An StdPicture object cannot be marshaled across process boundaries. If you attempt to call GetCustomIcon from out-of-process code, an exception occurs.
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기