Show Slicer Views in selected 3d windows

I have many 3d windows. And I want to show the slice view in only of the 3d view. How can I do that?

You can set view node IDs in display nodes. If you set view node IDs then the node is only shown in those views that have their IDs listed. So, find display node corresponding to the slice node and call AddViewNodeID for each 3D view you want to display it in.