How to know the ContentTypeId of a content type made with the Sharepoint interface

content-typesharepointworkflow

I am working on a workflow in VS which creates a task with content type.
The content type I want to use is a custom content type made with the SharePoint interface.

Is there a way to know this content type's Id so I can use it in my workflow?

If not; is there an alternative how to initiate a task containing this content type with my workflow code in VS?

Best Answer

You can see the ID of the content type in the url when looking at a content type in "Site Settings > Site Content Type Gallery". The url will be something like:

http://litwaredemo/_layouts/ManageContentType.aspx?ctype=0x010132165465465464654654654

The last part is the Content Type Id.